chetto1983 / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Trouble with my Alpha UV Map #81

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
hello ADC here, Still kind of new to jsc3d, my .obj & .mtl seem to link up the 
UV map alright, I set up a imprint area on my object witch is just a duplicate 
of that specific surface area linked to a separate blank png file UV Map(I will 
upload images to to test).. That blank alpha transparency UV Map will not show 
up at all.. Anyone got any Ideas?   

Original issue reported on code.google.com by adc15...@gmail.com on 16 Jul 2014 at 5:26

GoogleCodeExporter commented 8 years ago
Did you set correct render mode for the viewer? You should set render mode to 
one of 'texture', 'textureflat' or 'texturesmooth' to enable textures in 
rendering. Otherwise, textures are simply ignored.  This can be done either by 
initializing the viewer with an explicit asignment of the 'RenderMode' 
parameter:

  viewer.setParameter('RenderMode', 'texture'/* 'textureflat'/'texturesmooth' */);

or via invoking the setRenderMode() mothed at runtime to change current render 
mode setting:

  viewer.setRenderMode('texture'/* ... */);

Original comment by Humu2...@gmail.com on 16 Jul 2014 at 6:01

GoogleCodeExporter commented 8 years ago
The viewer is a cool tool, but I already had it set to 

viewer.setParameter('RenderMode', 'texturesmooth');

The object UV map looks good and the texture is coming through but my problem 
is I have a separate UV map linked to a .png file that wont show up maybe I 
have it linked wrong?  

Original comment by adc15...@gmail.com on 16 Jul 2014 at 6:16

GoogleCodeExporter commented 8 years ago
Have you manually modified the content of the mtl file? Maybe you can take a 
look into the mtl file, checking whether the mentioned png file was written in 
it with correct path and case. These matters when accessing resource via URL.

Be sure to check the console messages of your browser for any error hint.

Original comment by Humu2...@gmail.com on 16 Jul 2014 at 6:54

GoogleCodeExporter commented 8 years ago
Humm that was an issue but apparently its not working still, does jsc3d support 
.png UV's ? 

Original comment by adc15...@gmail.com on 17 Jul 2014 at 6:55

GoogleCodeExporter commented 8 years ago
Wow you where absolutely right, I had to manually correct the mtl file and it 
worked!!  

I will have to look into why blender saves the mtl unlinked, thanks again for 
your support. 

PS
Would you know how I could know more about the available "viewer.setParameter" 

Original comment by adc15...@gmail.com on 18 Jul 2014 at 3:48

GoogleCodeExporter commented 8 years ago
I'm glad to hear that :-)

setParameter() is a very important method which sets various startup parameters 
before initilization to configure the viewer instance. For documentation of 
this method, see here: 
http://jsc3d.googlecode.com/svn/trunk/jsc3d/docs/symbols/JSC3D.Viewer.html#setPa
rameter. And this artical http://code.google.com/p/jsc3d/wiki/StartupParameters 
provides a much more detailed discussion on the startup parameters.

Original comment by Humu2...@gmail.com on 18 Jul 2014 at 6:59