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.

AppGameKit Classic Chat / [SOLVED] How do I get regular RGB colors to show on 3D models

Author
Message
En929
3
Years of Service
User Offline
Joined: 8th Feb 2017
Location:
Posted: 31st Aug 2020 05:18
I am making a 3D game and when I load my .obj models into Appgamekit, my models show up white and have none of the colors that I put in with the modeling program I used. I attached my .obj model, I also attached the .mtl fill, and a photo of what the model was supposed to look like. . Thus, could someone tell me how to get the colors to show with the model. I used regular RGB colors and not UV.

EN

P.S. I wish that there was an easy way to just load models and their colors with just one command/function. Just my wishlist.

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
User Offline
Joined: 11th Jan 2005
Location: Adelaide
Posted: 31st Aug 2020 06:47 Edited at: 31st Aug 2020 07:23
the easiest way is to use this tool https://forum.thegamecreators.com/thread/223393 then use the newly created object in agk
and use the setobjectimage command with the tiny image that the program created

back up your objects
i think the obj has to be saved as an object and not a scene of objects
i also think objects created with planes can be troublesome
you may want to have each wall from your example saved seperately as an object that will prevent collision problems later
goodluck

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
PartTimeCoder
AGK Tool Maker
5
Years of Service
User Offline
Joined: 9th Mar 2015
Location: Suffolk UK
Posted: 2nd Sep 2020 08:14 Edited at: 2nd Sep 2020 08:15
Texture with am image pallet, scale your UV islands to 0.01 and drag the tiny island over the color you want then use that image in AGK.

Check out this video for low poly modeling in Blender (and give him a sub he has lots of useful tips)



The problem is when imported into AppGameKit every thing looks flat and bland, use the shades in the image pallet for slight changes on the surfaces of your objects to give them some definition else for example, your piano will just look like a brown blob, use dark brown on the front faces, slightly darker on the top and a slightly lighter shade for the sides.



On subject, does anyone have a "Cavity" shader??
En929
3
Years of Service
User Offline
Joined: 8th Feb 2017
Location:
Posted: 4th Sep 2020 22:58 Edited at: 4th Sep 2020 23:03
This post has been marked by the post author as the answer.
Fubarpk and PartTimeCoder, thanks! I figured how to do what I needed in a program called Wings3D. In Wings3D, the object loads with the shadows, shaders and everything. I even made a YouTube video tutorial about how I did it in case somebody else has this question. Here's YouTube video:


https://www.youtube.com/watch?v=V7JeefiScxg&t=358s
smerf
15
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 12th Sep 2020 05:55
using blender just paint verticies and export. they load perfectly

fubarpk
Retired Moderator
15
Years of Service
User Offline
Joined: 11th Jan 2005
Location: Adelaide
Posted: 12th Sep 2020 06:40
Quote: "using blender just paint verticies and export. they load perfectly"

what do you export them as, because the color information with obj files is in the mtl (material) file

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk

Login to post a reply

Server time is: 2020-10-25 17:02:35
Your offset time is: 2020-10-25 17:02:35