Wings 3D Development Forum
Changing Scale Results in Shading Effect - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Interface & Usage (https://www.wings3d.com/forum/forumdisplay.php?fid=3)
+--- Thread: Changing Scale Results in Shading Effect (/showthread.php?tid=1539)



Changing Scale Results in Shading Effect - Telsavision - 01-21-2016

I'm brand new to Wings3D. I downloaded it to slightly adjust models that I use for a game called Tabletop Simulator.

The game works on a grid based system, and the model I'm trying to edit is a little bit too small to fill up the 3x3 grid it's supposed to seamlessly.

In order to fix this, all I'm trying to do is slightly increase the size of the object. Using the .Scale Uniform feature, I bumped the scale to 101.60% of it's original size.

This size works perfectly, but it's adding a strange shaded effect to the object shown in the below picture.

http://i.imgur.com/1Ncomwj.jpg

I've tried messing with random options like smoothing and auto smoothing, but I'm just too out of my depth with this program to pinpoint such a peculiar issue.

End goal is just to make this object 101.60% of it's original size with no added issues or affect.

Any help would be greatly appreciated.

Here is a DL link to the .obj file for the original -
http://www.general-chaos.com/rp/ts/3x3tech.obj


RE: Changing Scale Results in Shading Effect - micheus - 01-21-2016

If the problem is related to the texture appearance, maybe it could help you disable the View->Show->Filter Texture.

It's just something that you see if it is enabled and it doesn't affect the exported object. Wink


RE: Changing Scale Results in Shading Effect - Telsavision - 01-21-2016

The image I linked in the OP shows images of the object exported, uploaded to Pastebin, and loaded from Pastebin into the Tabletop Simulator game, so it is affecting the exported object.

There is no visual representation of the shaded areas / effect in the Wings3D Program, with the textue filter disabled or enabled.


RE: Changing Scale Results in Shading Effect - micheus - 01-22-2016

Strange, because if the image is an external file Wings3D uses only it's reference when you export. Only if was made internal that could happen.:/

I couldn't download you obj file yet, but does it includes the image for texture?
I can take a look on it tomorrow.


RE: Changing Scale Results in Shading Effect - Telsavision - 01-22-2016

I use multiple textures with the .obj, but the one in that image is http://i.imgur.com/j2B6Jyv.jpg

The shading issues occurs with any texture, it's not texture specific.

Thanks.


RE: Changing Scale Results in Shading Effect - micheus - 01-22-2016

Telsavision, the .mtl file was absent, so what I could to do was to:
- Import the 3x3tech.obj into Wings3D;
- Import Image j2B6Jyv.jpg;
- Assign the image to the diffuse texture of the Material in Outline window;

Everything was fine in Wings3D.
Then, I used File->Export->Wavefront (*.obj) - all default settings - and I got an .obj file as well as a .mtl in which I could to confirm Wings3D is referencing the .jpg image - no new image was created by Wings3D:
3x3tech.mtl file content Wrote:# Exported from Wings 3D 2.0.2
newmtl Material
Ns 100.0
d 1.0
illum 2
Kd 1.0 1.0 1.0
Ka 1.0 1.0 1.0
Ks 1.0 1.0 1.0
Ke 0.0 0.0 0.0
map_Kd j2B6Jyv.jpg

So, I think the problem would be related to the other informations like normals, groups,...
By comparing the original and exported .obj I noticed the best settings to make both be similar is using these settings (mainly the checkbox controls):


But, even with 'Export normals/smoothing groups' unchecked I noticed Wings3D seems to be exporting information related to that:
Quote:...
vt 0.99847300 0.74889200
g geo_ground_Cube
usemtl Material
s 1
f 1/6/ 10/7/ 41/1/ 2/4/
...
That "s 1" means "smooth group 1", but as none vertex normal information is exported it should be ignored by application reading it (I think Smile).
In case you had used that settings when exporting, maybe the software isn't take this in account.

In the original .obj file (generated by Blend) I noticed it doesn't include the group information and the smooth group was explicitly set OFF:
Quote:...
vt 0.668974 0.212371
usemtl Material
s off
f 14/1 13/2 11/3 12/4
...

Concluding, if you didn't use the settings as I shown in the image, please try that and see the result.
If the result remains the same, please open your exported .obj in a editor like Wordpad (Windows) and look for the line with the "g" information and remove it and in the line with the "s" information change it from "1" to "off" (the double quotes should not be included). Then, save the file and check the result again.

Please give me a feedback.
Thanks


RE: Changing Scale Results in Shading Effect - Telsavision - 01-23-2016

I tried both of the options you suggested - Matching the options when exporting the object with the ones you showed in the screencap, and changing the lines in the .obj folder with notepad.

I changed the lines from ;

"g geo_ground_Cube" to "g"

and

"s 1" to "s off"

Both of these images import to wings 3D Just fine, but actually don't seem to work with Tabletop Simulator strange enough. The game requires the file to be hosted on a site, then it reads that info and translates it into an object within the game. This object shows up as a ball, which is what the game defaults to if it can't read the link into an model.

It's also worth noting that tabletop simulator incorporates textures through the same method - hosting them on a site and reading it onto the same object, so there's no need to worry about the texture in Wings3D, just how one might read onto the .obj if it was combined with a texture in a separate program.

The site I'm using to host the info is Pastebin.

Any other suggestions or comments? Again, I'll I'm trying to do is take that object and make it 101.60% it's size without it affecting how textures read onto it in Tabletop Simulator.

Thanks for your help.


RE: Changing Scale Results in Shading Effect - micheus - 01-23-2016

(01-23-2016, 01:04 AM)Telsavision Wrote: I changed the lines from ;

"g geo_ground_Cube" to "g"

and

"s 1" to "s off"

Both of these images import to wings 3D Just fine, but actually don't seem to work with Tabletop Simulator strange enough.
just to confirm. You made these changes in the file already scaled and after the .obj has been exported from Wings3D, right?

The problem cannot be the images for sure. That is why I think it's related to the information used with it - vertex normals is something affect the shader (http://www.scratchapixel.com/lessons/3d-basic-rendering/introduction-to-shading/shading-normals).

Unfortunately I don't have the simulator software, so my help is restricted. Sad
Maybe is there a forum for their community where maybe someone already faced this situation?