guillaumechereau / goxel

Goxel: Free and Open Source 3D Voxel Editor
GNU General Public License v3.0
2.8k stars 223 forks source link

Feature request: simple “no lighting” mode #142

Closed YarlBoro closed 5 years ago

YarlBoro commented 5 years ago

Sometimes I would like to completely get rid of light and shadow. I can somehow get it with right material settings, but it is never 100% pure voxel colors unaffected by light. There is always some colorization happening, depending on view angle.

It is especially problematic during coloring/texturing model, when it is essential to always see true unaffected colors.

Please, could You add simple switch to turn on/off light system in material panel? Thanks for consideration!

By the way, I couldn’t compile Goxel on MacOs after changes that happened about 8-10 days ago. I can provide You error log, if necessary.

axredneck commented 5 years ago

Yes, this would be handy for Doom/Duke3D modding.

By the way, I couldn’t compile Goxel on MacOs after changes that happened about 8-10 days ago. I can provide You error log, if necessary.

Open separate bug report please.

guillaumechereau commented 5 years ago

That should be easy enough to add.

I am currently working on a new shader based on metallic/rouhgness material settings. It is still quite experimental and I will probably tweak the rendering a lot before the next release. I will fix the osx build so you can try it out.

YarlBoro commented 5 years ago

I see you "keep your finger on a pulse" when it comes to doom/dn3d modding, Axredneck :)

@Guillaume Glad to hear that, thanks! About this new shader, I'm curious what new looks/materials it will make possible.

guillaumechereau commented 5 years ago

I try to reproduce the kind of material model that is used in three.js. I am not at hike right now but you can find an online editor for three js somewhere where you can play with the metallic/roughness parameters. I think it’s a bit simpler than the diffuse/specular /glossiness model, but by itself it doesn’t allow unlit effect, since it can only reproduce physically possible materials. It’s quite simple to add an unlit effect though, I’ll try to do that later to see how it works.

On Fri, May 3, 2019 at 6:39 PM Michał notifications@github.com wrote:

I see you "keep your finger on a pulse" when it comes to doom/dn3d modding, Axredneck :)

@guillaume https://github.com/guillaume Glad to hear that, thanks! About this new shader, I'm curious what new looks/materials it will make possible.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/guillaumechereau/goxel/issues/142#issuecomment-489055018, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA2JH5OPLOJYOT3VDPHDOLPTQI7LANCNFSM4HJ5I5QA .

-- Sent from my iPad.

guillaumechereau commented 5 years ago

Just added a new 'unlit' setting. image

YarlBoro commented 5 years ago

you can find an online editor for three js somewhere where you can play with the metallic/roughness parameter

I did, looks very good.

Just added a new 'unlit' setting.

Thank You !!! :)