jsc3d
jsc3d copied to clipboard
Trouble with my Alpha UV Map
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 [email protected] on 16 Jul 2014 at 5:26
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 [email protected] on 16 Jul 2014 at 6:01
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 [email protected] on 16 Jul 2014 at 6:16
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 [email protected] on 16 Jul 2014 at 6:54
Humm that was an issue but apparently its not working still, does jsc3d support
.png UV's ?
Original comment by [email protected] on 17 Jul 2014 at 6:55
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 [email protected] on 18 Jul 2014 at 3:48
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 [email protected] on 18 Jul 2014 at 6:59