![]() |
#1
|
|||
|
|||
sky box
hello,
currently i'm having issues with adding a sky-box. i tried following, but all i get is a gray sky: env = viz.add(viz.ENVIRONMENT_MAP,'maps/sky.jpg') (also tried viz.WORLD here) sky = viz.add('skydome.dlc') sky.texture(env) and another : skydome = viz.add('skydome.dlc',0,'',0,0,0,0,viz.WORLD) skydome.texture(env) to no avail. Sorry for all the questions, pretty newbie here, but once i get rolling ![]() greetz, Kevin |
#2
|
|||
|
|||
The first method should work, assuming the texture exists. The command
Code:
env = viz.add(viz.ENVIRONMENT_MAP,'maps/sky.jpg') 'maps/sky_posx.jpg' 'maps/sky_posy.jpg' 'maps/sky_posz.jpg' 'maps/sky_negx.jpg' 'maps/sky_negy.jpg' 'maps/sky_negz.jpg' Ensure that these files exist. Check the resource toolbar on the left side of your script. There should be an item that represents the environment map. Expand it and it will notify you if any textures are missing. If the textures exists and you still have this problem then your graphics card might not support cube maps. |
#3
|
|||
|
|||
hi,
textures were located fine, apparently my graphic card doesnt support it. On my colleague's computer there was some tearing of the sky, but that computer uses intel chip. Anyway currently i'm waiting for the new workstation with a nvidia quadro fx card to arrive, then this issue will be solved. thanks for the info, greets, Kevin |
#4
|
|||
|
|||
I've included a modified version of the skybox plugin that should work for cards without cubemap support. Place the contents of the zip file into the same directory as your script, or replace the existing plugin in the [Vizard25]\plug-ins directory.
To create a non-cubemapped skybox use the following example code: Code:
sky = viz.add('skydome.dlc',1,'maps/sky.jpg') |
#5
|
|||
|
|||
Hello,
i tested the file, and this works great ![]() Maybe you should include it in the release? ![]() thanks! greets, Kevin |
#6
|
|||
|
|||
I just modified it yesterday, so it will be in the next release. When you get your new graphics card you can still use this plugin with the old syntax to use cubemaps.
|
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|