tomysshadow / Shockwave-3D-World-Converter

This tool converts Shockwave 3D World Files (W3D) to Wavefront OBJ, Material and Image Files (OBJ, MTL, and TIFF.)
MIT License
12 stars 0 forks source link

different colors #10

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi

Could you please try model "1943" here

https://www.mameworld.info/3darcade/

I don't know if it's a bug but the model has different colors (black vs dark grey) for the sides:

Black side:

afbeelding

Dark grey side:

afbeelding

In the MTL I can also see the different colors

newmtl 1943sideleftin Ka 0.007843 0.007843 0.007843 Kd 0.000000 0.000000 0.000000 Ks 0.086275 0.086275 0.086275 Ns 12.800000 d 1.000000 newmtl 1943tmoldleft Ka 0.011765 0.011765 0.011765 Kd 0.007843 0.007843 0.007843 Ks 0.627451 0.627451 0.627451 Ns 12.799999 d 1.000000 newmtl 1943siderightin Ka 0.000000 0.000000 0.000000 Kd 0.011765 0.011765 0.011765 Ks 0.086275 0.086275 0.086275 Ns 12.800000 d 1.000000 newmtl 1943tmoldright Ka 0.000000 0.000000 0.000000 Kd 0.000000 0.000000 0.000000 Ks 0.627451 0.627451 0.627451 Ns 12.800000 d 1.000000

If you want to have a look? Does the original W3D has these colors too or is it a small bug?

tomysshadow commented 1 year ago

Have you looked in your model viewer where the 1943sideleftin, 1943tmoldleft, etc. materials actually are? They're along the bottom/inside of the cabinet, not the outside like shown in the screenshots. The shaders are different in the original world, although a difference of 0.01 or less from black to white is barely perceptible and was probably a mistake by the original creator.

The outside, on the other hand, is one uniform colour. It uses the 1943black material. You can easily see this by changing 1943black to a brighter colour. The difference in colour that is seen in your screenshots is due to the position of the lighting in your scene, not a difference of materials in the model.

P.S. if you want an easier way to preview Shockwave 3D Worlds in their original format you may want the Shockwave 3D Viewer (scroll down to the Shockwave category.) Please avoid posting issues about conversion when you don't know if the original world was meant to look that way.

ghost commented 1 year ago

I also noticed this on other models. Mostly black vs. dark grey and it seems this issue returns with those same colors. I didn't find a working Director version so I can't view the original W3D file. Do you know a viewer that can display W3D files maybe?

ghost commented 1 year ago

Hi

Yes, I now saw this but ... I have no lights since the mode I'm using in Blender is the material view which has no lights used. So then this is still a mystery. Why are both sides not black?

This must be a Blender bug the since:

Or what I need to do?

tomysshadow commented 1 year ago

In Blender the world has its own default light even without lamps present, as without it everything would be pitch black and difficult to gauge. See: https://www.reddit.com/r/blender/comments/gkelr9/is_it_possible_to_turn_off_default_camera_light/

In fact, you can see the lighting change as you rotate the camera around by holding middle click, even with a plain white cube.

ghost commented 1 year ago

Wow! You just have to know all this... I never heard of it. This seems to be only in 'material preview' mode, what I used too :D

There is also a 'render' mode and there everything is black (both sides of the model). Do you think there is no light in 'render' mode?

tomysshadow commented 1 year ago

There are several reasons a render may appear to have light, even if no lamps are present, such as the ones provided by this Stack Exchange answer.

Objects may appear illuminated, if ...

  • they are illuminated by lamp objects
  • they are illuminated by mesh lights with emission shaders
  • they are emitting light completely or partially, if they have an emission shader
  • the wrongheaded use of an Add Shader in a material
  • they are illuminated by the world (background shader)
  • ambient occlusion is activated
ghost commented 1 year ago

Do you use Blender yourself or is this just the same for each 3D program? I feel very stupid now 😭

tomysshadow commented 1 year ago

I haven't used Blender a great deal but have encountered the issue of lighting falsely affecting the perception of colour before in other 3D modeling tools and am aware that this is something that can happen in general.

ghost commented 1 year ago

Ok! Thanks a lot for the help. You hopefully understand now why I thought it was a bug in your program. I had no idea of all these things ☺️

Does Director do this too?

ghost commented 1 year ago

Can I maybe have your email to ask questions when I find something weird again? (General things) I tried on blender forums but nobody seems to know anything. It are more like artists there but they don't know technical things. I recently found the collada importer in Blender is completely broken! (Wrong colors, missing textures and sometimes even parts of the model not present)

I reported it as a bug.

tomysshadow commented 1 year ago

In Shockwave 3D, a light is added to the scene by default. If the default light is deleted, the scene is pitch black and nothing can be seen. The default light does change the perception of colour (although it looks a bit more subtle to my eyes than Blender's default Studio Light.)

I'm on Twitter @TOMYSSHADOW if you need. However be aware I haven't used Blender for any actual 3D modeling before, so I can't really provide help outside of general stuff with it. I used to create my own 3D models, but it's been several years since then. I liked using a (now ancient) modeling tool called 3DVIA Shape - it was kind of similar to Sketchup but created by Dassault Systemes - and I kind of lost interest in modeling when it was discontinued. I still do programming stuff, though! ;)

ghost commented 1 year ago

Do you maybe know where to disable the light they are talking about?

https://www.reddit.com/r/blender/comments/gkelr9/is_it_possible_to_turn_off_default_camera_light/

In "system" nothing is there.

There is "lights" but nothing there too

afbeelding

Blender is nice but the documentation is not up to date :(

tomysshadow commented 1 year ago

Seems to have moved to Preferences > Lights > Studio Lights > Editor. There are checkboxes you can tick and customize the settings.

On Sun, Jan 22, 2023, 11:00 a.m. blender-girl @.***> wrote:

Do you maybe know where to disable the light they are talking about?

https://www.reddit.com/r/blender/comments/gkelr9/is_it_possible_to_turn_off_default_camera_light/

In "system" nothing is there.

There is "lights" but nothing there too

[image: afbeelding] https://user-images.githubusercontent.com/122493908/213932045-263d4992-bade-49a2-ad60-fa3df296c7a5.png

Blender is nice but the documentation is not up to date :(

— Reply to this email directly, view it on GitHub https://github.com/tomysshadow/Shockwave-3D-World-Converter/issues/10#issuecomment-1399562457, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAH5245QE3YHMM2T2Q6XZLWTVYT5ANCNFSM6AAAAAAUCQOJ54 . You are receiving this because you were mentioned.Message ID: @.***>

ghost commented 1 year ago

If nothing is checked, there is still this light. So I think it can't be disabled

ghost commented 1 year ago

I have the answer!

https://developer.blender.org/T104058