Bright lights on the dark side of a mesh.

Blitz3D Forums/Blitz3D Beginners Area/Bright lights on the dark side of a mesh.

Viperfish(Posted 2005) [#1]
Can anyone briefly tell me how this is achieved. Here's a gallery shot of the sort of effect I'm trying to achieve.
http://www.blitzbasic.com/gallery/view_pic.php?id=1004&gallery=&page=3
(Great looking project Jon_E_5.)

I've tried turning the ambient lighting off. Then applying a second textures over my mesh of just bright white windows and playing with texture flags and the TextureBlend commands. But, no joy.

There doesn't seem to be any tutorials on how to use textures, brushes, PaintMesh/EntityTexture (is there a difference?!) etc.

Thanks in advance,
Johnno


doctorskully(Posted 2005) [#2]
I have a few guesses as to how this is done...
The meshes could have been lighted individually with the LightMesh command...or maybe a cone of light was used, pointing only towards the dark side of the mesh.
And EntityTexture and PaintMesh really don't have much of a difference in terms of texturing, but the brushes are a shortcut if you have many meshes with the same properties you want assigned to them. Also, using PaintMesh assigns properties and not only a texture, IF you've assigned more than a texture to the brush.
I hope this helps.


octothorpe(Posted 2005) [#3]
If you're willing to use a separate surface, I think you'd be able to achieve the effect by setting "full-bright" (BrushFX(1) or EntityFX(1)).

Brushes are important because they allow you to paint individual surfaces, instead of entire entities.


Mustang(Posted 2005) [#4]
Fullbright (surface) or additive (surface) will do the trick nicely.


Viperfish(Posted 2005) [#5]
Thanks for the quick replies folks. I got it to work by creating a copy of my texture and blacking out all the image except the lights. Then loading it and applying it to my mesh as follows;

sttex = LoadTexture("media/lights.bmp",4);Masked
TextureBlend sttex,3;Additive texture. Thanks Mustang.
EntityTexture spacestation,sttex,0,1




Raitsun(Posted 2005) [#6]
This shot looks very nice... do you have a worklog, or a few more screenshots you could put in the gallery?


Viperfish(Posted 2005) [#7]
Some gallery shots as requested.
http://www.blitzbasic.com/gallery/view_pic.php?id=1098&gallery=&page=1
http://www.blitzbasic.com/gallery/view_pic.php?id=1099&gallery=&page=1


_PJ_(Posted 2005) [#8]
These screens really put Galactic Allegiance to shame at the moment! Great stuff for inspiration and Aspiration! Keep up the good work!!!


Viperfish(Posted 2005) [#9]
If anyone is interested, I posted in the Showcase area where you can now download a demo. Above lighting included.
http://www.blitzbasic.com/Community/posts.php?topic=49902