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.

3 Dimensional Chat / Blender 2.53 texture problem

Author
Message
MrBill181
14
Years of Service
User Offline
Joined: 8th Apr 2010
Location:
Posted: 13th Sep 2010 02:07
The only way that I can get a texture on my Blender2.53 models in DarkBasic Pro is to export as 3ds, then inport into MilkShape 3D, then export as .x, then use that .x in DarkBasic Pro. If I try to use the .x exporter in Blender2.53 the model appears in DarkBasic Pro without the texture. Is there a better way to do this?

MrBill181

Ortu
DBPro Master
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 13th Sep 2010 05:07
make sure the texture image is assigned in the object's material and not just the UV/image editor


Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 13th Sep 2010 05:39
There are a number of issues that could be going on here. First off, the texture needs to be applied as an image texture that uses a UV Layer. Second, make sure that the Export Textures setting is checked in the exporter (I dunno why it wouldn't be; it's on by default). Third, are the image and the .x file in the same folder when you try to load them into DBPro? They need to be. If they aren't you can load the image separately into DBPro and then apply it to the object with the texture object command.

Let me know if none of these suggestions solves your problem.

MrBill181
14
Years of Service
User Offline
Joined: 8th Apr 2010
Location:
Posted: 17th Sep 2010 20:33
Thanks Kira Vakaan for all the work you are doing on the exporter. I am using HP Pavilion dv7 Notebook PC, AMD Turion(tm) Dual-
core 2.1 Ghz with Direct x 10

Blender is 2.53.0 r'30581'

In the pic below the you can see that box10.x and the uv texture which is box.jpg are in the media in DarkBasic Pro:



Here you can see that box.jpg is being used as the texture:



Here you can see that box.jpg is the uv layout:



Here you can see the settings I use to export:



Do you see anything wrong with what I am doing? What should I try next?

Thanks for the help

MrBill181

haliop
User Banned
Posted: 18th Sep 2010 01:57
you can check inside the X file, open it with Text editor
find Materials -> somewhere there you should see
the texture file inside "texture.type" .. it should be there. if you didnot assigned it well , so the problem is with blender
im actually editing in blender 2.54beta
then loading that file inside blender 2.49b using the same exporter but for 2.49b and it works.

im doing that cause blender 2.5x is doing me some problems ..
Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 18th Sep 2010 05:34
Hmmm, it looks like everything should be in order. I don't understand. I've attached a screenshot of what happens when I export a cube with a texture, and it all works just fine. I wrote this exporter by testing against the DirectX Viewer and I don't have DBPro installed on this computer to test with, but I haven't encountered a situation where DBPro produced a different outcome than the DirectX Viewer (makes sense, I suppose).

As haliop says, you could and probably should check the exported .x file for something that looks like this:


Granted, I've done all this in 2.54, but there haven't been any changes to the way the exporter writes texture references or UV data since 2.53 (and a while before then). I'd be more than willing to take a look at the .blend and .x files if you'd like to post them with the necessary textures.

Attachments

Login to view attachments
MrBill181
14
Years of Service
User Offline
Joined: 8th Apr 2010
Location:
Posted: 18th Sep 2010 05:56
This is what is in box10.x:



Does this mean that the exporter is working correctly?

Thanks for you time

MrBill181

Attachments

Login to view attachments
Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 18th Sep 2010 06:08 Edited at: 18th Sep 2010 06:09
Ooh, no, the mesh's texture coordinates are not being exported for some reason. The only thing I can thing to suggest would be to manually specify the UV Layer to use for the texture here:



In 2.54, the active UV Layer is assumed by default, but perhaps this was a problem with Blender itself in 2.53 that has been since fixed. If that doesn't fix it, I recommend downloading Blender 2.54 from blender.org.

I hope that helps.

Attachments

Login to view attachments
MrBill181
14
Years of Service
User Offline
Joined: 8th Apr 2010
Location:
Posted: 18th Sep 2010 06:45
I switched the box that you indicated to uvtex in blender 2.53 and go the same result no texture. I switched to blender 2.54 and the exporter wants to export my .x file as a .blend file. When I change it from box12.blend to box12.x then box12.x file does not show up on my desktop which is where I saved it. I am using Vista does that make a difference?

MrBill181

Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 18th Sep 2010 22:38
I really have no idea what's going on. If you post the .blend file, I'd be very interested to take a look at it. As for the exporter acting up and listing the filename as .blend, I really have no idea why that would be happening. Every time I try to export from 2.54, it works as expected and lists it as .x. It very well could be a Vista issue, but that would be a little weird. I recommend searching your computer for box12.x in case it got dumped elsewhere for whatever reason. Knowing Vista, it probably has something to do with permissions. Have you disabled Vista's UAC?

In any case, if you could post the .blend file, I'll take a look at how the exporter handles it so we can determine where the problem is. I triple-boot Windows XP, 7, and Ubuntu Linux, and my brother has Vista, so we should be able to determine whether or not it's an OS problem.

MrBill181
14
Years of Service
User Offline
Joined: 8th Apr 2010
Location:
Posted: 19th Sep 2010 01:01
I attached box13.blend to this post. I will also email it to you. It is from Blender 2.54. Thanks for all the help.

MrBill181

Attachments

Login to view attachments
Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 19th Sep 2010 01:42 Edited at: 19th Sep 2010 01:44
Very weird. Well, while running Windows 7 Professional 64-bit, 2.54 didn't want to export the file as .blend, but behaved and chose .x. However, when I did export it, none of the texture coordinates were exported, just like the contents of the .x file you posted. As it turns out, the UV coordinates are not exported whenever the object is in Edit Mode. Bringing the object back into Object mode seems to have done the trick.

As for the weird renaming, I really have no explanation. I haven't experienced that. When I brought up the exporter, it had already filled in the file name with box13.x. Perhaps that's a Vista issue.

Anyhoo, I hope that does the trick for you.

Edit: Here's the correct exported file:

The changed section is under MeshTextureCoords.

MrBill181
14
Years of Service
User Offline
Joined: 8th Apr 2010
Location:
Posted: 19th Sep 2010 05:59
That did the trick. I had to be in object mode to export. It works with Blender 2.54. Sorry for all the trouble. Thanks for all the help Kira Vakaan. You have made me very happy.

Thanks

MrBill181

Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 21st Sep 2010 04:05
No problem. I'm glad it's all working now. Good luck.

Login to post a reply

Server time is: 2024-11-24 10:57:34
Your offset time is: 2024-11-24 10:57:34