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.

Newcomers AppGameKit Corner / [SOLVED] .x file with material imported in AGK

Author
Message
nob
User Offline
Joined: 27th Dec 2019
Location: Reunion Island
Posted: 12th Jan 2020 15:22 Edited at: 12th Jan 2020 15:25
Hi again all,
I guess it's a recurrent question. But after searching and tried many combinations found in the forum, my object doesn't display with material in AGK2.
I created a 3D object, then imported it in "metasequoia" to paint it.
Then I imported it in Blender(2.79b) to get a .x file.
In Blender all the materials (i use only colors, no texture) are listed and the object looks as it should be.
I export the object with these settings for .x file (see attached pic. ...with "import selected object only" unchecked).
Object is displayed in AppGameKit but not the colors.

Attachments

Login to view attachments

The author of this post has marked a post as an answer.

Go to answer

fubarpk
Retired Moderator
15
Years of Service
Recently Online
Joined: 11th Jan 2005
Location: Adelaide
Posted: 12th Jan 2020 23:27
This post has been marked by the post author as the answer.
any format you use requires you to setobjectimage
I have seen on the forums that the mtl file with an object
can be used but its extensive the code you need to do so
and wont work with all files
MerryChristmas Everyone
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
nob
User Offline
Joined: 27th Dec 2019
Location: Reunion Island
Posted: 13th Jan 2020 10:01 Edited at: 13th Jan 2020 10:04
Thx fubarpk!
So it means I must create an "atlas" texture and load it (loadImage() ) then apply it to the object (setobjectimage() ), instead of using mtl file.
Right?
fubarpk
Retired Moderator
15
Years of Service
Recently Online
Joined: 11th Jan 2005
Location: Adelaide
Posted: 13th Jan 2020 10:57
Yes
MerryChristmas Everyone
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
nob
User Offline
Joined: 27th Dec 2019
Location: Reunion Island
Posted: 13th Jan 2020 13:37
Now it perfectly works, after creating the "texture atlas" by following the instructions in this very interesting video:
"Easy UV Unwrapping w/ Texture Atlas - Blender Beginner Tutorial"
https://www.youtube.com/watch?v=bP_1XfpEy80
Well... it's done! Thx all!

Login to post a reply

Server time is: 2020-07-14 09:06:09
Your offset time is: 2020-07-14 09:06:09