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 Professional Discussion / [SOLVED] Make an object VERY yellow!

Author
Message
Alduce
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 8th Sep 2021 10:35 Edited at: 8th Sep 2021 10:37
Hi guys, in first sorry for the basic question but I am stuck in the sand..

Look at the picture :


You can see a lot of black and yellow objects (these are debris in my game).
You can notice that the black debris are total black; I used the SET OBJECT AMBIENT obj, 0 command to ensure the color was a total black.

You can also see the yellow debris.
You can notice these debris are yellow but are also affected by the lights present in the scene. So we can see thar some debris sides are yellow/grey (shadow).
Ok, I really would to get these debris TOTAL YELLOW like the black debris!
Unfortunately if I apply, to these yellow debris, the SET OBJECT AMBIENT obj, 0 command so I get a total WHITE color!..

I am here more than 1 hour trying many commands but just I can't get my yellow debris as TOTAL YELLOW debris..

Please help!

Attachments

Login to view attachments

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

Go to answer

Code Maker
8
Years of Service
User Offline
Joined: 4th Dec 2015
Location:
Posted: 8th Sep 2021 23:04
You can alter the color of light that an object emits
irrespective of any light or ambience by using the command

set object emissive object number, color value

like this

Alduce
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 9th Sep 2021 17:22 Edited at: 9th Sep 2021 18:22
This post has been marked by the post author as the answer.
Hi Code Maker in first thank you for answer!

Your example working pretty fine but in my game is different.. mmmm

here my code:



and please look at picture:


You can notice the debris boxes are NOT full yellow like in your example.. mmmmm

here my scene configuration:


Could this set be wrong? I tried to change these parameters but nothing.. mmmm

EDIT: I tried to put my scene configuration in your example and it still working fine.. So I don't understand why my debris are NOT full yellow

EDIT 2 : Now it's working! just forgot to use color object and set object emissive togheter! THANK YOU VERY MUCH Code Make!

Login to post a reply

Server time is: 2024-04-25 09:31:29
Your offset time is: 2024-04-25 09:31:29