Page 1 of 1

Lasers!

Posted: Tue Apr 20, 2010 7:19 pm
by MattyWS
Change them, basically. I suggest the spring way, using sprites (images) to make the lasers look cooler, they also don't look like lasers in TA3D at the moment, they look dull. They need to be lighter rather than coloured stretched blobs. I made an example of what I mean with two of my own home made lasers in photoshop. Is there a way to make this happen?

Re: Lasers!

Posted: Tue Apr 20, 2010 8:22 pm
by zuzuf
It could be done using a texture with alpha channel which can be repeated indefinitely, eventually I can add a head and tail to the laser (let's say top/bottom of the texture or left/right). Since it has yet to be implemented, I let you chose what you think is more convenient.

Re: Lasers!

Posted: Tue Apr 20, 2010 10:35 pm
by MattyWS
Indeed texture with an alpha channel would work perfectly

Left and right would be convenient, by adding head and tail you mean another small image attached to each end correct? Easily enough done, and repeating the middle image would be great, this way you can choose how long it is by choosing how many times the image repeats, right?

Re: Lasers!

Posted: Tue Apr 20, 2010 10:49 pm
by zuzuf
exactly :)

Re: Lasers!

Posted: Tue Apr 20, 2010 10:59 pm
by MattyWS
I attached some quick images below for you to play with

Re: Lasers!

Posted: Wed Apr 21, 2010 4:07 pm
by Balthazar
I like where it is going :P

Re: Lasers!

Posted: Thu Apr 22, 2010 9:02 pm
by MattyWS
How goes the progress? Want me to make some quick head and tail for it along with an alpha map image?

Re: Lasers!

Posted: Fri Apr 23, 2010 6:47 am
by zuzuf
I've implemented it (without head/tail textures yet). This is how it looks:
Image

Textures can be replaced for each laser weapon. I am wondering if it would be better to have the texture including the head and tail directly and when the laser hits something the head is just not drawn (texture is just cut to current laser length), this would give you full control over the laser texture from your image editor. What do you think ?

Re: Lasers!

Posted: Fri Apr 23, 2010 9:13 am
by MattyWS
Looks brilliant! apart from the laser has a shadow. :P

How is the way you suggested different from the original plan? Unless you mean to make the head and tail all in one image?

Re: Lasers!

Posted: Fri Apr 23, 2010 12:24 pm
by zuzuf
That's it all in one image.

Re: Lasers!

Posted: Fri Apr 23, 2010 12:44 pm
by Balthazar
And how about animated effects? Like the sequence of images? Like the electric beams?

Re: Lasers!

Posted: Fri Apr 23, 2010 1:52 pm
by zuzuf
The electric beams are not a texture effect.
The ultimate freedom would be achieved through scripting ...

Re: Lasers!

Posted: Fri Apr 23, 2010 2:57 pm
by DOT
The Texture looks nice i like the Electrical one because they use Energy

thought the Lasers produces a Shadow which looks ugly the should make lights or faked lights instead of shadows since
else it would look like a colored nanoified missile

Re: Lasers!

Posted: Fri Apr 23, 2010 2:58 pm
by zuzuf
I removed those shadows :P

Re: Lasers!

Posted: Sat Apr 24, 2010 11:12 am
by MattyWS
Ah, in such a case then I made this image too, laser with head and tail. If you want to make it shorter you only need to cut part of the middle out. :)

Re: Lasers!

Posted: Sun Apr 25, 2010 4:59 pm
by MattyWS
Another thing you have yet to consider it flares from the guns, they can be sprite based too now. No need for any special effects, just make sure they look bright.

Re: Lasers!

Posted: Thu Apr 29, 2010 2:58 pm
by MattyWS
How are things coming along?

Re: Lasers!

Posted: Thu Apr 29, 2010 3:06 pm
by zuzuf
Slowly as I am working on a raytracer for university and have exams next week :P

Re: Lasers!

Posted: Mon Sep 20, 2010 12:28 pm
by D.Durand
Interresting, but on what model you put that texture ? A plane ? A boxe ? A cross ?

Re: Lasers!

Posted: Mon Sep 20, 2010 3:35 pm
by zuzuf
Laser textures are billboards aligned with the laser trajectory so geometrically they are quads looking towards the camera.

Re: Lasers!

Posted: Tue Sep 21, 2010 10:35 am
by slogic
zuzuf wrote:I removed those shadows :P
Why? Make it optional.

Re: Lasers!

Posted: Tue Sep 21, 2010 11:07 am
by Balthazar
slogic wrote:
zuzuf wrote:I removed those shadows :P
Why? Make it optional.
Because lasers are the sources of light. They should make things around look brighter, but not to cast shadows )

Re: Lasers!

Posted: Tue Sep 21, 2010 12:23 pm
by slogic
Well, i don't see dynamic lightning. So environment depth is not sensible. Leave shadows until dynamic light is implemented :)

Re: Lasers!

Posted: Fri Sep 24, 2010 11:11 am
by D.Durand
zuzuf wrote:Laser textures are billboards aligned with the laser trajectory so geometrically they are quads looking towards the camera.
I fear i don't understand. The game put it on a plane itself put at 90° to the camera ? Same for the start and end flares ?

How do i do for make use of that ?

Re: Lasers!

Posted: Sun Oct 03, 2010 9:41 pm
by zuzuf
D.Durand wrote:The game put it on a plane itself put at 90° to the camera ?
That's right.
D.Durand wrote:Same for the start and end flares ?
No, currently flares are implemented as parts of the 3D model which are hidden/shown using scripting as in OTA.
D.Durand wrote:How do i do for make use of that ?
Lasers are textures which can be specified in the weapon's TDF files using the following variables:

Code: Select all

lasertexture1 = my_laser_texture1.png;
lasertexture2 = my_laser_texture2.tga;
When 2 textures are specified they're blended together with a varying alpha oscillating between full texture1 and full texture2

Re: Lasers!

Posted: Fri Oct 15, 2010 4:16 pm
by D.Durand
Bon, alors j'ai essayé. Le problème est que l'image proposée par Matman fonctionne très bien (on voit un laser bleu), mais dès que je change les couleurs du laser dans photoshop, TA3D m'affiche simplement un trait noir.

À quoi cela peut-il être du ?

Re: Lasers!

Posted: Sun Oct 17, 2010 12:23 pm
by zuzuf
Cela est probablement du à l'absence de canal alpha pour indiquer les régions transparentes. Le problème c'est que pour économiser de la mémoire vidéo, une texture n'a de canal alpha que si le fichier chargé en a un et pour les effets qui nécessitent de la transparence il faut que le canal alpha soit présent. Au niveau du format d'image, le PNG supporte ça sans problème :)

Re: Lasers!

Posted: Mon Oct 18, 2010 12:57 am
by D.Durand
Well, now, even the image downloaded from here are black.

I joins an image done in the Gimp (Photoshop is pretty bad with PNG transparency) : When TA3D use it (it's the ARM LLT shooting), the shoot is black. Transparency is transparent, but all the color of the laser is black.

Re: Lasers!

Posted: Mon Oct 18, 2010 3:49 pm
by zuzuf
Did you enable the "'developer mode" option in the advanced option tab ? It disables caches which may interact badly with updated content.

Re: Lasers!

Posted: Mon Oct 18, 2010 6:39 pm
by D.Durand
Yes. But my TA3D never make cache (or delete it after the game, i don't know). You had done that some month agos.

Re: Lasers!

Posted: Mon Mar 28, 2011 4:54 am
by Flashbang232
blur the ends a bit. they kinda look square.
i would probably go as far as to say they look like blue illuminated rectangles.

nah, probably not, but the shadow looks a bit unrealistic, considering that they are not blocking light, they are radiating light....