BZW Exporter Version 2.0?
BZW Exporter Version 2.0?
Seeing as apache's php_mod is working fine, the botwatch scripts are up to date and can't be published until 2.0.5 goes stable, the mail server is ticking over nicely in the corner, the laptop is finally running encrypted and I finished all the hotplug scripts for the wifes mp3 player, I'm bored.
The thought occurs that as the original blender exporter grew from an old wrl script, and is way too bloated to do much more to without breakage, perhaps a rewrite is in order.
Then a further thought occurs 'Hey Tepp, what if you do it proper like.... you know.... classes, comment yer code, that sort of thing.'
So I'm gonna rewrite the exporter, but whilst writing indivdual classes to export to a bzw file you may as well reverse the process, reading an existing map through a parser, and convert it back in the same module.
Well, then comes the question, if you could import and export complete maps to and from blender would you use it? By complete I mean everything, from server options to physics drivers, spawn zones to fancy looking meshes with 12 textures and see through bits. It would also include a simple toolkit gui like the old one to add new objetcs etc.
Thoughts?
The thought occurs that as the original blender exporter grew from an old wrl script, and is way too bloated to do much more to without breakage, perhaps a rewrite is in order.
Then a further thought occurs 'Hey Tepp, what if you do it proper like.... you know.... classes, comment yer code, that sort of thing.'
So I'm gonna rewrite the exporter, but whilst writing indivdual classes to export to a bzw file you may as well reverse the process, reading an existing map through a parser, and convert it back in the same module.
Well, then comes the question, if you could import and export complete maps to and from blender would you use it? By complete I mean everything, from server options to physics drivers, spawn zones to fancy looking meshes with 12 textures and see through bits. It would also include a simple toolkit gui like the old one to add new objetcs etc.
Thoughts?
- ^nightmare^
- Private First Class
- Posts: 1264
- Joined: Sun Feb 20, 2005 7:14 pm
- Location: Alabama
- Contact:
Re: BZW Exporter Version 2.0?
hehe, sounds like your making a new bzflag map editor.Teppic wrote:Seeing as apache's php_mod is working fine, the botwatch scripts are up to date and can't be published until 2.0.5 goes stable, the mail server is ticking over nicely in the corner, the laptop is finally running encrypted and I finished all the hotplug scripts for the wifes mp3 player, I'm bored.
The thought occurs that as the original blender exporter grew from an old wrl script, and is way too bloated to do much more to without breakage, perhaps a rewrite is in order.
Then a further thought occurs 'Hey Tepp, what if you do it proper like.... you know.... classes, comment yer code, that sort of thing.'
So I'm gonna rewrite the exporter, but whilst writing indivdual classes to export to a bzw file you may as well reverse the process, reading an existing map through a parser, and convert it back in the same module.
Well, then comes the question, if you could import and export complete maps to and from blender would you use it? By complete I mean everything, from server options to physics drivers, spawn zones to fancy looking meshes with 12 textures and see through bits. It would also include a simple toolkit gui like the old one to add new objetcs etc.
Thoughts?
Sure, i would use it.
Need bzflag help? Try looking here: http://www.freewebs.com/bznightmare/map ... aghelp.htm
- RPG
- Lieutenant, Junior Grade
- Posts: 2015
- Joined: Fri Sep 17, 2004 2:37 am
- Location: Chicago, Illinois
- Contact:
Something that could input AND export BZFlag maps would be awesome. Clearly what we need for our Mapper Tower Project.
Question about the modifier gui, should it be in a third party app (ie have its own window) or use blenders GUI abilities. I don't know how many people run blender in a window?
Going against my normal choice (pygtk or pyqt), and using wxpython for the gui will allow windows compatibility as well AFAIK(thx to LePoupe for the heads up on that, and his nifty bz manager)
P.S. I hate transform matrices
Going against my normal choice (pygtk or pyqt), and using wxpython for the gui will allow windows compatibility as well AFAIK(thx to LePoupe for the heads up on that, and his nifty bz manager)
P.S. I hate transform matrices
- Saturos
- Art Master General
- Posts: 1111
- Joined: Mon Apr 19, 2004 2:48 pm
- Location: Berlin/Germany
- Contact:
I run blender in a window... I hate fullscreen-apps that aren't games.
Saturos ([phagozytose] : www.phago.de)
- ducatiwannabe
- Private First Class
- Posts: 3258
- Joined: Tue Aug 10, 2004 3:55 pm
- Location: Planet Earth
- Contact:
I would definitely use it - I'm learning Blender now.
I would say to use the built in Blender GUI - for consistency, and anyway, popup windows prevent you from using Blender while they are open, or when you click Blender it will drop behind Blender and dissapear. Also, Blender's GUI is lighter and more dense than Windoze's, so screen real estate would be better used.
I think.
It would be great if you could add a standard Blender modifier to something and give it special BZFlag properties through that modifier. Also, things like teleporters and bases could be done by adding a BZFlag submenu under the SPACEBAR>Add menu.
I would say to use the built in Blender GUI - for consistency, and anyway, popup windows prevent you from using Blender while they are open, or when you click Blender it will drop behind Blender and dissapear. Also, Blender's GUI is lighter and more dense than Windoze's, so screen real estate would be better used.
I think.
It would be great if you could add a standard Blender modifier to something and give it special BZFlag properties through that modifier. Also, things like teleporters and bases could be done by adding a BZFlag submenu under the SPACEBAR>Add menu.
The modifier I've done before, but I'm not sure you can register scripts to the add menu.....TD-Linux wrote:It would be great if you could add a standard Blender modifier to something and give it special BZFlag properties through that modifier. Also, things like teleporters and bases could be done by adding a BZFlag submenu under the SPACEBAR>Add menu.
OK, blender gui is is then.
- Attachments
-
- snapshot1.jpg
- Look familiar?
- (38.71 KiB) Downloaded 24 times
Teppic wrote:Testers wanted for the importer, python 2.4, blender version 2.40, I tried to keep it 2.37 compatible but I'm not sure I did, required py modules are os and math.
The importer is about 90% done, but I don't want to have to sit around for bug reports once it is.
ill test it, I have blender 2.40 and 2.41
- Mostly Harmless!
- Private First Class
- Posts: 347
- Joined: Sun Oct 30, 2005 4:37 am
- Location: California
The anonymous cvs server should be working now.
Anyone not happy using cvs post and I'll upload weekly snapshots to a http server.
I'll post here for updates and new modules ( phydriver, texmat, transform and waterlevel are the only ones left)
When (yes when) coming across a problem pls post the error output from the console and the map file (or section that broke it).
Saturos, you need the math module this time, try typing python in a console, then import math in the python console to test. If it doesn't work try installing python again from whatever package manager you use.
I'm also interested to know if you run it under 2.3python or 2.3*blender, stuff like that.
Some notes, links for transporters end up in layer 19, materials (bz specific) end up in layer 20 as spheres to exhibit the material, textured materials won't show up in the viewport sometimes, but will in a render. World weapons are represented by the cheesy gun in layer 1. Most of the bz specific properties can't be viewed within blenders view properties button section, as they are list or tuple objects and not strings floats or ints, this is fine for now as the GUI will eventually take care of it. I expect the rest of the modules will be available by the end of next week.Thanks for the help guys.....
Code: Select all
cvs -d :pserver:anonymous@teppic.homelinux.net:2401/root login
[just press enter at the password prompt]
cd /home/yourname/.blender/scripts/
cvs -d :pserver:anonymous@teppic.homelinux.net:2401/root/ checkout bzflag
cp bzflag/bzwImport.py ./bzwImport.py
blender -window
I'll post here for updates and new modules ( phydriver, texmat, transform and waterlevel are the only ones left)
When (yes when) coming across a problem pls post the error output from the console and the map file (or section that broke it).
Saturos, you need the math module this time, try typing python in a console, then import math in the python console to test. If it doesn't work try installing python again from whatever package manager you use.
I'm also interested to know if you run it under 2.3python or 2.3*blender, stuff like that.
Some notes, links for transporters end up in layer 19, materials (bz specific) end up in layer 20 as spheres to exhibit the material, textured materials won't show up in the viewport sometimes, but will in a render. World weapons are represented by the cheesy gun in layer 1. Most of the bz specific properties can't be viewed within blenders view properties button section, as they are list or tuple objects and not strings floats or ints, this is fine for now as the GUI will eventually take care of it. I expect the rest of the modules will be available by the end of next week.Thanks for the help guys.....
- Saturos
- Art Master General
- Posts: 1111
- Joined: Mon Apr 19, 2004 2:48 pm
- Location: Berlin/Germany
- Contact:
Looks good, I guess.Saturos@linux:~> python
Python 2.4 (#1, May 4 2005, 21:41:46)
[GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>>
I'll try your thing now.
Saturos ([phagozytose] : www.phago.de)