Artwork Refresh for BZFlag

BZFlag related only please...please attach large images
nEW playe
Private First Class
Private First Class
Posts: 20
Joined: Sat Feb 28, 2009 5:43 pm

Re: Artwork Refresh for BZFlag

Post by nEW playe » Mon Oct 04, 2010 8:14 pm

mrapple wrote:
nEW playe wrote:What should I show? The C++ code :wink: ?
Definitely! I"d love to mod my client with these cool ad-ons :)

If you have BZ checked out from SVN, you can simply use the svn diff command to create a file that people can use to apply the mod to their clients.

Then it sounds like if you provide the .diff with some image files and such, people would be able to add this to their clients :)
Ok, maybe Ill post a video of some mods I've done. Then, !if I've got some time!, I can post a diff. (Normally this wouldn't take long, to create diffs, but there are several things I rather don't want to publish, so it could become a time-lasting job, the number of mods I've currently done are FAR over 20 decent things, but that's another story.)
Ill post for now the new files ParticleSceneNode.cpp/h, ParticleSystem.cpp/h, but Ill post the diffs another time :? .
You may expect a video soon.
Attachments
ParticleSceneNode.h
(2.63 KiB) Downloaded 123 times

[The extension cxx has been deactivated and can no longer be displayed.]

ParticleSystem.h
(5.73 KiB) Downloaded 109 times

[The extension cxx has been deactivated and can no longer be displayed.]

Last edited by nEW playe on Tue Oct 05, 2010 4:40 pm, edited 1 time in total.

User avatar
mrapple
Sergeant Major
Sergeant Major
Posts: 460
Joined: Wed May 27, 2009 11:59 am
Location: Unknown
Contact:

Re: Artwork Refresh for BZFlag

Post by mrapple » Mon Oct 04, 2010 8:58 pm

One word: awesome.

Only a few things. Only seeing ParticleSystem, not ParticleSceneNod.

As for the diff, its pretty simple. Heres a mini instruction guide:

1. Run the command "svn co https://bzflag.svn.sourceforge.net/svnr ... nch/bzflag bzflag_particle_mod"

2. Apply all your modifications to the fresh codebase (located in a new directory, bzflag_particle_mod)

3. When finished, change directory to bzflag_particle_mod and run "svn diff > particle_mod.diff"

That should result in a .diff and will allow other players to easily modify their source to incorporate all of your changes with a single command :)
Image

nEW playe
Private First Class
Private First Class
Posts: 20
Joined: Sat Feb 28, 2009 5:43 pm

Re: Artwork Refresh for BZFlag

Post by nEW playe » Tue Oct 05, 2010 4:41 pm

mrapple wrote:Only a few things. Only seeing ParticleSystem, not ParticleSceneNod.
Excuse me, I forgot to add those in my post. I edited the post, now those files are available for download :) .

User avatar
mrapple
Sergeant Major
Sergeant Major
Posts: 460
Joined: Wed May 27, 2009 11:59 am
Location: Unknown
Contact:

Re: Artwork Refresh for BZFlag

Post by mrapple » Tue Oct 05, 2010 8:48 pm

Good work. Hope to see that diff file soon ;D
Image

nEW playe
Private First Class
Private First Class
Posts: 20
Joined: Sat Feb 28, 2009 5:43 pm

Re: Artwork Refresh for BZFlag

Post by nEW playe » Thu Oct 21, 2010 6:19 pm

mrapple wrote:Good work. Hope to see that diff file soon ;D
"Soon" is a great word, but at least: HERE IS IT!

:D :!: BzFlag Exhaust diff :!: :D
  • o Features a stable smoke particle system. (In brief: Every tankhas got a working exhaust :) )
  • o To apply the diffs: Add all non-diff files to the corresponding directory; Apply all diff-files to the corresponding original ones (based on version 2.0.12)
  • o Makefile.in.diff files are actually trivial since its gerenated from Makefile.am, better you should run "automake" in the root of the sourcetree.
  • o If you discover bugs, or questions, please send me a PM or just use the forums.
  • o Of course the licence remains unchanged, but if you plan to create new things, Ill be interested to know :) .
  • Download the zip-file here:
    exhaustDiff.zip
    (358.07 KiB) Downloaded 118 times

Enjoy your virtual pollution!
nEW playe

User avatar
mrapple
Sergeant Major
Sergeant Major
Posts: 460
Joined: Wed May 27, 2009 11:59 am
Location: Unknown
Contact:

Re: Artwork Refresh for BZFlag

Post by mrapple » Fri Oct 22, 2010 12:17 am

Wow... great work!! Looks incredible!

I only found one "bug" which is exhaust still "generates" when a tank has stealth. Fixed that.

I also added that the color of tank exhaust is their team color. Only exception is that rabbits are rainbow.

Tanks that have stealth/cloaking will ONLY generate exhaust when you are in observer mode or you are the one with cloaking/stealth.

[The extension diff has been deactivated and can no longer be displayed.]

P.S. I tested this and it doesn't display smoke if you have blindness and the effects of wide angle do affect smoke.

P.S.S. If you already applied the original mod, do "svn revert Player.cxx" then "patch < Player.cxx.diff" again.
Image

nEW playe
Private First Class
Private First Class
Posts: 20
Joined: Sat Feb 28, 2009 5:43 pm

Re: Artwork Refresh for BZFlag

Post by nEW playe » Fri Oct 22, 2010 6:46 pm

Oh, yeah, I forgot about the blindness thing, but I intentionally activated the exhaust also for STealth tanks, but I DEactivated it for the CLoaked tanks.

Take your time to think logical about it: All two characteristics of stealth and cloaked are preserved:
Proof for non-seal situations:
  • o Cloaked tanks are only visible on the radar: OK, no smoke visible.
  • o Stealth tanks are only visible in 3d view: OK, smoke visible.
But I can understand your way of thinking: "You can see a stealth tank behind a wall because there's some smoke-puffing thing at some spot where no tank exists on the radar." This will increase the survive rate of the normal tank, but to be honest: even at particleScale set to 1.0, a static stealth tank remains quasi invisible (Yet I've got some experience :roll: ).
I also put the question to a famous admin (forget his name :roll: , hopefully he reads this post :wink: ) and he told me there was no problem with it.


Thanks for the idea of letting the tanks emit their own teamcolour :) .

nEW playe
Private First Class
Private First Class
Posts: 20
Joined: Sat Feb 28, 2009 5:43 pm

Re: Artwork Refresh for BZFlag

Post by nEW playe » Fri Oct 22, 2010 7:36 pm

mrapple wrote:I also added that the color of tank exhaust is their team color. Only exception is that rabbits are rainbow.
You coded for example for the Red Team:

Code: Select all

if(getTeam() == RedTeam)
{
	pcol[0] = 1;
	pcol[1] = 0;
	pcol[2] = 0;
}
But why don't you do it linear? It's much nicer then because you preserve the "complex" pullution-calculations (calcs to determine density of black diesel particles). So better would be:

Code: Select all

if(getTeam() == RedTeam)
{
	pcol[0] *= 1;
	pcol[1] *= 0;
	pcol[2] *= 0;
}
I tested this and your idea becomes very cool when playing with multiple teams :D .
It will definitely give a new shape to BzFlag. 8)

User avatar
mrapple
Sergeant Major
Sergeant Major
Posts: 460
Joined: Wed May 27, 2009 11:59 am
Location: Unknown
Contact:

Re: Artwork Refresh for BZFlag

Post by mrapple » Fri Oct 22, 2010 9:27 pm

That way works too. Didn't really think about the "density" calculations.

Glad this is working out. Now we just need to patch it for 3.0 and maybe it will make it in :)
Image

nEW playe
Private First Class
Private First Class
Posts: 20
Joined: Sat Feb 28, 2009 5:43 pm

Re: Artwork Refresh for BZFlag

Post by nEW playe » Sat Oct 23, 2010 4:14 pm

mrapple wrote:Now we just need to patch it for 3.0 and maybe it will make it in :)
Let's hope so! :D
The cool thing about my ParticleSystem is that you can easily implement smoke or even fire not only on tanks, but also in BzFlag Worlds (someone else might do that).
The positive thing against LUA is the speed of C++.

User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

Re: Artwork Refresh for BZFlag

Post by hutty » Wed Oct 27, 2010 5:20 pm

is it possible to do 3d(ish) grass using a ton of billboards and your partial system?

or maybe even partial based clouds
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water

User avatar
Cobra_Fast
Dev Monkey
Dev Monkey
Posts: 321
Joined: Sat Oct 07, 2006 11:51 am
Location: Germany
Contact:

Re: Artwork Refresh for BZFlag

Post by Cobra_Fast » Wed Oct 27, 2010 5:40 pm

huttymuncher wrote:is it possible to do 3d(ish) grass using a ton of billboards and your partial system?
or maybe even partial based clouds
It's "particle" not partial ... I would be doing 3D grass with a somewhat dense grid of textured boxes on the ground.

snick
Private First Class
Private First Class
Posts: 95
Joined: Thu Jun 02, 2005 2:26 pm

Re: Artwork Refresh for BZFlag

Post by snick » Sat Apr 16, 2011 3:50 pm

Ultra hi-res basetop and tank textures:

http://dl.dropbox.com/u/22994649/massivetex.zip

User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

Re: Artwork Refresh for BZFlag

Post by hutty » Fri Jun 03, 2011 12:08 pm

nice and big, however the base top textures lack the 3d popout ish char that they used to have
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water

User avatar
Captain Simmons
Private First Class
Private First Class
Posts: 31
Joined: Thu Nov 11, 2010 4:10 pm
Location: yesterday

Re: Artwork Refresh for BZFlag

Post by Captain Simmons » Wed Jun 08, 2011 11:41 pm

nEW playe wrote:Let's hope so!
The cool thing about my ParticleSystem is that you can easily implement smoke or even fire not only on tanks, but also in BzFlag Worlds (someone else might do that).
Would it be possible to use the smoke thing (looks awesome btw) for when a tank gets shot? it would be awesome if, say the parts of the tank flying left smoke trails, and if the spot where the tank was destroyed gets a crater and a rising column of smoke that lasts for a little while? that would make it really awesome looking on some more intense servers to see the smoke of battle floating into the air... or even when a shot hits something like a wall, and bounces off then a little puff of smoke emits or something? I cant wait to see what GMs would look like with that feature. :D


Is this the final patch/ version?
mrapple wrote: Player.cxx.diff
(7.03 KiB) Downloaded 14 times
there is no such thing as a free lunch. this undoubtedly means that you can have all the free breakfasts and dinners you want.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5172
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Re: Artwork Refresh for BZFlag

Post by JeffM » Thu Jun 09, 2011 2:30 am

Captain Simmons wrote:Would it be possible to use the smoke thing (looks awesome btw) for when a tank gets shot? it would be awesome if, say the parts of the tank flying left smoke trails, and if the spot where the tank was destroyed gets a crater and a rising column of smoke that lasts for a little while? that would make it really awesome looking on some more intense servers to see the smoke of battle floating into the air... or even when a shot hits something like a wall, and bounces off then a little puff of smoke emits or something? I cant wait to see what GMs would look like with that feature. :D
that is on the roadmap for 2.4.2 or 2.4.4

User avatar
Pizzahead
Corporal
Corporal
Posts: 48
Joined: Mon Dec 24, 2007 6:42 pm
Location: New York, USA
Contact:

Re: Artwork Refresh for BZFlag

Post by Pizzahead » Tue Jun 21, 2011 2:32 am

Kind of sad looking back on this discussion of 3.0
Let's not bicker and argue about who killed who.

nEW playe
Private First Class
Private First Class
Posts: 20
Joined: Sat Feb 28, 2009 5:43 pm

Re: Artwork Refresh for BZFlag

Post by nEW playe » Wed Aug 17, 2011 7:13 am

JeffM wrote:that is on the roadmap for 2.4.2 or 2.4.4
And do which particle system will be used then? Would it be the same sort of thing as the GM smoke trails? Or would it be based on my system? Or would it be implemented via LUA script?

User avatar
blast
General
General
Posts: 4678
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Artwork Refresh for BZFlag

Post by blast » Wed Aug 17, 2011 10:42 am

It would be hard coded the same as the other effects. There is no Lua support in 2.4.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

nEW playe
Private First Class
Private First Class
Posts: 20
Joined: Sat Feb 28, 2009 5:43 pm

Re: Artwork Refresh for BZFlag

Post by nEW playe » Tue Aug 30, 2011 1:05 pm

Finally I made a video of a few features I implemented.
(In the past it was difficult to capture videos because of my old gfx card).

Here is the link to it:
http://www.youtube.com/watch?v=YQ4NwDDPzno

User avatar
Bullet Catcher
Captain
Captain
Posts: 548
Joined: Sat Dec 23, 2006 7:56 am
Location: Escondido, California

Re: Artwork Refresh for BZFlag

Post by Bullet Catcher » Tue Aug 30, 2011 3:09 pm

Nice demo, nEW playe. Your changes significantly increase the realism, but I am concerned about gameplay.

Most importantly, showing tank orientation on radar is something that the BZFlag developers have deliberately chosen not to do. It allows players to almost completely ignore the window view, making the game too easy. This means it is a cheat feature when used on servers that use the official protocol versions (BZFS0026 for 2.0, BZFS0221 for 2.4).

Tanks carrying the Stealth or Cloaking flag won't like having exhaust smoke, but it would be easy enough to turn that off for them.

Tank barrel recoil seems harmless enough, although it usually won't be well synchronized with shots on multi-shot maps. Similarly, the shaking from a nearby explosion won't bother players who have the Display Treads option turned off.

nEW playe
Private First Class
Private First Class
Posts: 20
Joined: Sat Feb 28, 2009 5:43 pm

Re: Artwork Refresh for BZFlag

Post by nEW playe » Tue Aug 30, 2011 6:59 pm

Thank you for your feedback, Bullet Catcher.
Bullet Catcher wrote:Nice demo, nEW playe. Your changes significantly increase the realism, but I am concerned about gameplay.
That's true, sometimes it's really annoying while rear driving, but it adds a level of difficulty though (besides, this is often used in other shooters), and it makes you feel better when you succeed in shooting an enemy.
Bullet Catcher wrote:Most importantly, showing tank orientation on radar is something that the BZFlag developers have deliberately chosen not to do. It allows players to almost completely ignore the window view, making the game too easy. This means it is a cheat feature when used on servers that use the official protocol versions (BZFS0026 for 2.0, BZFS0221 for 2.4).
Good point, I mentioned in the description that is was still activated after using it to debug smoke emission vectors, but I know this is actually not done on official protocol versions. After making this video I realised they were still activated but I was to lazy to make another video without it to replace the current one. I'll think twice next time when posting a new vid.
Bullet Catcher wrote:Tanks carrying the Stealth or Cloaking flag won't like have exhaust smoke, but it would be easy enough to turn that off for them.
We've already discussed this in this same topic: Cloaking flags indeed won't having exhaust smoke, but Stealth flags keep their exhaust smoke (it's logic), cfr. a couple of posts above.
Bullet Catcher wrote:Tank barrel recoil seems harmless enough, although it usually won't be well synchronized with shots on multi-shot maps. Similarly, the shaking from a nearby explosion won't bother players who have the Display Treads option turned off.
To show better what actually happens, here's some anscii art (turret = "=====>" and bolt = "O") that might take away some confusion:

Normal single shot:

=====>
=> O
==> O
===> O
====> O
=====> O

4 rounds directly fired after eachother, followed by a last one just before full barrel recovery:

=====>
=> O
=> O O
=> O O O
=> O O O O
==> O O O O
===> O O O O
====> O O O O
=> O O O O O
==> O O O O O
===> O O O O O
====> O O O O O
=====> O O O O O

Hope that helped something, I know this is not really realistic, but it will still be nice enough, also for on multi-shot maps.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests