Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

update Blender .pie import scripts for PIE 3 format #1584

Closed
wzdev-ci opened this issue Feb 13, 2010 · 18 comments
Closed

update Blender .pie import scripts for PIE 3 format #1584

wzdev-ci opened this issue Feb 13, 2010 · 18 comments

Comments

@wzdev-ci
Copy link
Contributor

resolution_Needs reevaluating for current version (3.2.3) type_patch (an actual patch, not a request for one) | by stiv


update blender .pie import/export scripts to handle PIE 3 format.
add comments, code cleanup.

pie_import:
change 'import * from Blender' to 'import Blender as B' and
make associated B.* name changes. The 'import *' is not a good
programming practice in general and it steps on the Python sys
module


Issue migrated from trac:1584 at 2022-04-15 21:05:56 -0700

@wzdev-ci
Copy link
Contributor Author

stiv uploaded file blender-pie.patch (13.7 KiB)

update blender pie import scripts

@wzdev-ci
Copy link
Contributor Author

stiv changed type from bug to patch

@wzdev-ci
Copy link
Contributor Author

stiv commented


Fix for bug http://developer.wz2100.net/ticket/1545

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Mar 2, 2010

stiv uploaded file blender-pie-2.patch (16.5 KiB)

latest greatest. import discards bad polygons

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Mar 2, 2010

MaNGusT commented


change status to fixed pls. I can't download new version of plugins.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Mar 3, 2010

i-NoD uploaded file blender.zip (10.2 KiB)

Here are the plugins from 'blender-pie-2.patch'.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Mar 3, 2010

MaNGusT commented


thanks. now it works great with pie=3 and floating points. bugs are fixed.
Question. Can I use now only floating points when I convert my new models? instead of integer Pie=2. I think that we can forget about integer now, don't we? :-)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Mar 9, 2010

i-NoD commented


Replying to Warzone2100/old-trac-import#1584 (comment:3):

thanks. now it works great with pie=3 and floating points. bugs are fixed.
Question. Can I use now only floating points when I convert my new models? instead of integer Pie=2. I think that we can forget about integer now, don't we? :-)
Somehow I missed the notification e-mail for your post.
AFAIK the engine itself is float-capable for 3 years now, but it wasn't usable without proper exporter. :)

I guess you've already figured if we can use floats in pie?

@wzdev-ci
Copy link
Contributor Author

Buginator changed status from new to pending

@wzdev-ci
Copy link
Contributor Author

Buginator commented


stiv, is it OK to commit this?

What about #359 ?

@wzdev-ci
Copy link
Contributor Author

i-NoD commented


Please wait until I enable a complete support for floating point in PIE3 (#1678). Then scripts should be changed accordingly...

@wzdev-ci
Copy link
Contributor Author

stiv commented


The Blender plugins already handle floating point coords both for verts and texture coords. I don't see any reason not to commit them. They are PIE 3 compatible.

i-node: what do you mean by floating point support? Are you thinking of changing the texture space to 0.0-1.0 or simply changing the 0-256 space from ints to floats?

Is the WZM format up to date?
http://developer.wz2100.net/wiki/WZM_format

It looks like it is using 0.0-256.0 for the texture coordinate space.

@wzdev-ci
Copy link
Contributor Author

stiv changed status from pending to new

@wzdev-ci
Copy link
Contributor Author

i-NoD commented


texture space to 0.0-1.0

Current PIE 3 format can handle FP for vertexes, but only 8-bit integers for texture coords.
The root cause is that game engine isn't capable of FP tex coords yet. I will fix this, but we shouldn't mix integers and floats.

The idea is to use PIE2 format for integers (for PieSlicer compatibility) and PIE3 for FP (blender and such). Current trunk models will be rolledback to PIE2 state as they will gain nothing from PIE3 format. Plus renewed PIE3 format will lack ANIDATA structure, so any effects in .pie should be in PIE2 format. New TCMask flag will availabel on PIE3 format.

PIE3 format will be a test ground before WZM format, although I think whole WZM is in a 'idea' state...

@wzdev-ci
Copy link
Contributor Author

Per changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

Per changed resolution from `` to Needs reevaluating for current version (3.1.0)

@wzdev-ci
Copy link
Contributor Author

stiv commented


Can we get a definitive declaration of what the PIE* format state is with regards to 3.1? I stopped working on this because it seemed the format and usage was in flux, although I'm not sure anything ever came of it.

The scripts also need to be re-worked for use in new Blender (2.6x) since it has a completely different Python API and mechanism for registering plug-ins, something I have been poking at a bit lately.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jan 24, 2013

dak180 commented


Replying to Warzone2100/old-trac-import#1584 (comment:10):

Can we get a definitive declaration of what the PIE* format state is with regards to 3.1? I stopped working on this because it seemed the format and usage was in flux, although I'm not sure anything ever came of it.

It is my understanding that the format for 3.1 will not be undergoing any more changes; 3.2 on the other hand may be getting support for the the wzm format (see #3905) but i do not think there are any plans to change the pie support.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant