WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-19-2010, 05:17 AM
sleiN13 sleiN13 is offline
Member
 
Join Date: Dec 2008
Posts: 83
Adding BumpMaps

I'm trying to add bumpmaps to a simple cube and ran into a few weird problems.
The vizard help file doesn't give a lot of results on 'bumpmap' so I wondered if I was doing it wrong.

Code:
cube = viz.add('Export//BumbmapCube.osg')
bumbmap = viz.add('Export//images//bumpmap_normalmap.jpg')
text = cube.getTexture()
cube.bumpmap(bumbmap,'',0)
cube.texture(text,'',1)
cube.appearance(viz.DECAL)
This code works but it is strange that i need to get the texture and re-set it after applying the bumpmap else it is not shown in the world.

1. Is there a way to apply the bumpmap with out overwriting/removing the existing texture
2. Is there a more elegant way to add a bumpmap
3. Is there a file format that exports the bumpmaps added in 3DS max and/or Maya so that it does not have to be added later on in the Vizard code.

Last edited by sleiN13; 11-19-2010 at 05:26 AM.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with adding actions vijaykiran Vizard 0 10-05-2009 04:18 PM
adding more than 1 action for avatar animation slider control yak Vizard 0 07-21-2009 12:22 PM
Adding custom faces mjabon Vizard 2 04-01-2009 09:34 PM
Awkward neck/shoulder connection when adding custom head to vcc model. vEsotu Vizard 5 10-09-2008 06:07 PM
For users with a floating license: Adding Vizard License Server as a Service mspusch Vizard 0 03-03-2006 12:36 PM


All times are GMT -7. The time now is 02:45 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC