WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   battlefield example (https://forum.worldviz.com/showthread.php?t=1941)

Moh200jo 03-31-2009 11:26 AM

battlefield example
 
Hi,
I want to use battlefield example from 3Ds Max tutorial with vizard after exported it to WRL. I am trying to allow avatar walking on this scenes, the avatar should follow the shape of the ground. In addition, I would like to texture cloud image with the sky.
Any suggestion would be really appreciated.
I have attached the example.
Thanks,

Moh200jo 03-31-2009 11:31 AM

1 Attachment(s)
attachment1

Moh200jo 03-31-2009 11:38 AM

battlefield.zip:
Upload of file failed.

:mad:

Jeff 03-31-2009 05:47 PM

Try using the OSG exporter and exporting to the compiled OSG format, .ive. You could export the ground as one model and the rest of the scene as another model. Then to have the avatar follow the terrain when you use vizact.walkTo for the y value use your ground model. Check out this thread to see how to do that

http://forum.worldviz.com/showthread.php?t=1587

Moh200jo 04-01-2009 02:20 AM

openthreadsWin32.dll
 
I cannot install it
it needs this
openthreadsWin32.dll was not found.
any help to fix this?
thanks,

Moh200jo 04-01-2009 02:26 AM

Attachment
 
1 Attachment(s)
I have attached battlefield.wrl with this thread
:D

Jeff 04-02-2009 05:12 PM

Which version of Max are you using? Did you download the OSG exporter for Max from our site?

Moh200jo 04-03-2009 05:07 AM

Thanks Jeff,
I am using Max 2009. Yes I have downloaded the OSG exporter for Max from your site.
May I ask here... why it is difficult to work with my own .wrl while .wrl has been used by many examples from Vizard?
Regards

Moh200jo 04-06-2009 09:43 AM

I have done it. OSG Exporter 0.9.5 shall be used for Max 2009
I could not have a control into main view that I have imported it.
please see my code.
HTML Code:

import viz
viz.go()
mainview=viz.clearcolor(viz.SKYBLUE)
view1=viz.add('ground.ive')
view1.setScale(5,5,5)
view1.setPosition(-200,-2000,10550)
avatar = viz.add('vcc_female.cfg')
walkAction = vizact.walkTo([0,view1,40])
avatar.addAction(walkAction)
link = viz.link(viz.MainView, view1)
link.preTrans([0,-.1,-1])
mylight = viz.addLight()
mylight.enable()
mylight.position(0, 1, 0)
mylight.spread(180)
mylight.intensity(5)



All times are GMT -7. The time now is 04:26 AM.

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