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 Studio Chat / [SOLVED] while using loadobject and setobjectmeshimage, the shader looks too light....

Author
Message
Yiu435
3
Years of Service
User Offline
Joined: 19th Dec 2020
Location:
Posted: 20th Jul 2021 23:36
while using loadobject and setobjectmeshimage, the shader looks too light....
I try to use setambientcolor/setsunactive but it is no effect...
need help plz...





Attachments

Login to view attachments

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

Go to answer

PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 21st Jul 2021 17:28
That model is untextured, is it animated?, if not use LoadObject/SetObjectImage, or try GetObjectNumMeshes to see if you need to set object or mesh images.

Plain white like that means no texture has been applied.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Jul 2021 21:24 Edited at: 21st Jul 2021 21:25
This post has been marked by the post author as the answer.
You ar adding the image to textureStage 1. It needs to be textureStage 0
SetObjectMeshImage( objID, meshIndex, imageID, textureStage )

Login to post a reply

Server time is: 2024-04-19 00:55:06
Your offset time is: 2024-04-19 00:55:06