Lasers!
Lasers!
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?
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Lasers!
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.
=>;-D Penguin Powered
Re: Lasers!
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?
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!
I attached some quick images below for you to play with
- Attachments
-
- To make alpha map, I believe all you need to do is take the image and make desaturate it (make it black and white)
- laser2normal.png (3.24 KiB) Viewed 155487 times
-
- Same as above with repeating pattern
- laser1normal.png (2.84 KiB) Viewed 155487 times
- Balthazar
- Moderator
- Posts: 2055
- Joined: Wed Nov 01, 2006 4:31 pm
- Location: Russian Federation
- Contact:
Re: Lasers!
I like where it is going 

Re: Lasers!
How goes the progress? Want me to make some quick head and tail for it along with an alpha map image?
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Lasers!
I've implemented it (without head/tail textures yet). This is how it looks:

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 ?

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 ?
=>;-D Penguin Powered
Re: Lasers!
Looks brilliant! apart from the laser has a shadow. 
How is the way you suggested different from the original plan? Unless you mean to make the head and tail all in one image?

How is the way you suggested different from the original plan? Unless you mean to make the head and tail all in one image?
- Balthazar
- Moderator
- Posts: 2055
- Joined: Wed Nov 01, 2006 4:31 pm
- Location: Russian Federation
- Contact:
Re: Lasers!
And how about animated effects? Like the sequence of images? Like the electric beams?
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Lasers!
The electric beams are not a texture effect.
The ultimate freedom would be achieved through scripting ...
The ultimate freedom would be achieved through scripting ...
=>;-D Penguin Powered
Re: Lasers!
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
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!
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. 

- Attachments
-
- laser3normal.png (3.18 KiB) Viewed 155459 times
Re: Lasers!
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.
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Lasers!
Slowly as I am working on a raytracer for university and have exams next week 

=>;-D Penguin Powered
Re: Lasers!
Interresting, but on what model you put that texture ? A plane ? A boxe ? A cross ?
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Lasers!
Laser textures are billboards aligned with the laser trajectory so geometrically they are quads looking towards the camera.
=>;-D Penguin Powered
Re: Lasers!
Why? Make it optional.zuzuf wrote:I removed those shadows
- Balthazar
- Moderator
- Posts: 2055
- Joined: Wed Nov 01, 2006 4:31 pm
- Location: Russian Federation
- Contact:
Re: Lasers!
Because lasers are the sources of light. They should make things around look brighter, but not to cast shadows )slogic wrote:Why? Make it optional.zuzuf wrote:I removed those shadows
Re: Lasers!
Well, i don't see dynamic lightning. So environment depth is not sensible. Leave shadows until dynamic light is implemented 

Re: Lasers!
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 ?zuzuf wrote:Laser textures are billboards aligned with the laser trajectory so geometrically they are quads looking towards the camera.
How do i do for make use of that ?
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Lasers!
That's right.D.Durand wrote:The game put it on a plane itself put at 90° to the camera ?
No, currently flares are implemented as parts of the 3D model which are hidden/shown using scripting as in OTA.D.Durand wrote:Same for the start and end flares ?
Lasers are textures which can be specified in the weapon's TDF files using the following variables:D.Durand wrote:How do i do for make use of that ?
Code: Select all
lasertexture1 = my_laser_texture1.png;
lasertexture2 = my_laser_texture2.tga;
=>;-D Penguin Powered
Re: Lasers!
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 ?
À quoi cela peut-il être du ?
- Attachments
-
- armes.zip
- (10.08 KiB) Downloaded 3524 times
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Lasers!
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 

=>;-D Penguin Powered
Re: Lasers!
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.
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.
- Attachments
-
- arme.zip
- (854 Bytes) Downloaded 3501 times
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
Re: Lasers!
Did you enable the "'developer mode" option in the advanced option tab ? It disables caches which may interact badly with updated content.
=>;-D Penguin Powered
Re: Lasers!
Yes. But my TA3D never make cache (or delete it after the game, i don't know). You had done that some month agos.
-
- Posts: 155
- Joined: Tue Aug 03, 2010 6:59 pm
- Location: Behind LOIC
Re: Lasers!
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....
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....
When you cannot trust your government to lead the nation to better times is when you know the ship is sinking
Who is online
Users browsing this forum: No registered users and 1 guest