[REP++] Object material invisible (light visible)
#1

Hello, i'm trying to obtain an object that emits light without texture.

Object id 19281 represents that little white dot that emits light but i want to hide the texture of it.

I tried something like this:

pawn Код:
tempth = CreateObject(19281, x,y,z,rx,ry,rz);
    SetObjectMaterialText(tempth, " ", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 28, 1, 0xFFFFFFFF, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
and the light is not showing up, i don't know why. If i'm not using SetObjectMaterialText the light will show up along that little white dot. (example here with that little white dot: http://i.imgur.com/VQBlOl.png)

I only need that object to emit the light without being seen, i rep the first person who helps me solve this.

Thanks!
Reply
#2

You can't remove it, as it is not another texture. It is just the center of the light. As it is the center, there is more light, so it looks like a "dot"/ball. You can see that the light intensity lowers as it reaches the margin. You can't lower the intensity of it in the center or anywhere.
Reply
#3

PHP код:
tempth CreateObject(19281x,y,z,rx,ry,rz);
    
SetObjectMaterialText(tempth". "0OBJECT_MATERIAL_SIZE_256x128"Arial"2810x000000FF0OBJECT_MATERIAL_TEXT_ALIGN_CENTER); 
Text in black and front in black :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)