Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds


Browsing this Thread:   1 Anonymous Users






VHTK example error
#1
Quite a regular
Quite a regular


See User information
Hi,

I'm new to H3DAPI and VHTK. I was trying to load an example came with VHTK, the setup_sphere.x3d. After changing the urls in the file and ran it, i got the following message from H3DLoad:

InvalidTextureDimensions: Width 256(must be 2^k + 2*border_width for some integer k)(border_width=1) Height 256(must be 2^k + 2*border_width for some integer k
)(border_width=1) Depth 256(must be 2^k + 2*border_width for some integer k)(border_width=1) in (H3D::X3DTextureNode::renderImage() in ..\..\src\X3DTextureNode
.cpp line 316)

The sphere was generated by compiling and run the cpp file in data\sphere.cpp using VC 9. Should I change the dimension of the sphere to 258 or set the borderwidth to 0? and how do I do that?

Any help is very much appreciated!

thanks

Posted on: 2010/5/18 1:28
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK example error
#2
Guru
Guru


See User information
Why is the border width not zero?

Posted on: 2010/5/18 7:57
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK example error
#3
Quite a regular
Quite a regular


See User information
I'm not sure why the border_width and depth is not 0. I don't think I've changed those parameter and I can't find anywhere in the .x3d file that changed it.

Getting rid of all the haptics and just want to render the volume, the x3d code is simply:


type="NONE"/>


skyColor="0.5 0.5 0.5"/>

planes="100" >


DEF="SCALAR"
containerField="imageObject"
url="../data/sphere_256x256x256_u8.raw" >
padding="true">
width="256" height="256" depth="256"
bitsPerPixel="8"
pixelType="LUMINANCE"
pixelComponentType="UNSIGNED"
pixelSize="0.0005 0.0005 0.0005" />








Even so, I still get the same error!!! What am I missing here?


Posted on: 2010/5/18 12:03
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK example error
#4
Guru
Guru


See User information
The border width is specified outside of the used nodes. I can't see why the border is not set to zero when the program starts. Is there something wrong with the drivers? States leaking from other programs? Non zero border as default?

Could you check the value of border_width after line 285 in X3DTextureNode.cpp?

Posted on: 2010/5/19 9:40
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK example error
#5
Quite a regular
Quite a regular


See User information
Look like it was a leaky parameter. I managed to get it working on our haptics station after the third re-installation, by some chance!

Thanks for your help

Posted on: 2010/5/27 2:29
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]





(C) 2012 SenseGraphics AB    ---    Powered by XOOPS