Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / problem with model textures in DB

Author
Message
Cornholio
20
Years of Service
User Offline
Joined: 24th Aug 2004
Location:
Posted: 25th Aug 2004 06:39 Edited at: 25th Aug 2004 08:01
I have made a simple model in 3D Canvas.
Each face uses the same texture, but with a different color.
I then exported the model to x-format and copied the texture file.
The result looks fine in the DXSDK's mesh viewer.
However, when I load the object into DB or DBPRO only the color of the original texture is shown ? I seem to be having trouble with the materials...
What am I doing wrong ?

Joris Van den Dries
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 25th Aug 2004 18:47
Quote: "I have made a simple model in 3D Canvas.[\quote]
what version of canvas?


[quote]Each face uses the same texture, but with a different color."


emissive and colour applied to the model are different to the uv map applied to the model.

if you apply a colour the texture will over ride it.
if you apply an emission the emission will shade or colour the texture.


Quote: "
I then exported the model to x-format and copied the texture file.
The result looks fine in the DXSDK's mesh viewer.

However, when I load the object into DB or DBPRO only the color of the original texture is shown ? I seem to be having trouble with the materials...
What am I doing wrong
"


perhaps its a UVwrapping technique issue.

3dcanvas has a wealth of tutorials

http://www.amabilis.com/tutorials.htm

perhaps you need to look at this one

http://www.3d-canvas.info/3DCanvasDocumentation/tutorialtextures.htm

or this one

http://www.3d-canvas.info/3DCanvasDocumentation/tutorialunwrap.htm

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself
Cornholio
20
Years of Service
User Offline
Joined: 24th Aug 2004
Location:
Posted: 27th Aug 2004 09:15
Thanks your reply The problem is still there however, but I have found a simpler way to describe it. Sorry about this but I am a newbie... I will explain step by step of what I do...

- I drag a cube primitive onto the canvas.
- From the "gems" materials that come with 3DC, I select the green sphere.
- I select "red" as color for the material and use the fill tool on the cube, then I save.
- I export the cube as ".X" and load the object into DB with "load object".

Result : the cube shows the texture in its original color (greenish). Again, DXSDK mesh viewer looks fine. I cannot seem to apply any color to the texture... I am probably doing something fundamentally wrong. 3DC version is 6.5.0.6 pro...

maybe this explanation helps...

Joris Van den Dries
The Dark Knight
20
Years of Service
User Offline
Joined: 25th Aug 2004
Location: The Round Table
Posted: 31st Aug 2004 02:26
If you want the texture to show up in DB:
Load image "Yourimage.bmp",1
Load object "Yourobject.x",1
texture object 1,1

I assume you know that the code
above will only work with your filenames
Try this, if this isn't what your looking for maybe
someone else can help you

I was the Dark Padawan until I clicked on a stupid link from Eat Much Pie that logged me out and I forgot my password and now I can't log in as The Dark Padawan

Login to post a reply

Server time is: 2025-05-24 23:33:46
Your offset time is: 2025-05-24 23:33:46