Comments (4)
With what ease can these octrees be edited?
from crashedit.
Not really sure what the best way would be to do it, perhaps flatten the tree into a 3d bitmap and then replicate the kind of behavior you'd see in a voxel editor, whatever that looks like exactly I'm not sure. One thing to note is the octrees have a specified resolution in their headers, so you don't have to walk the tree first to find your target bitmap resolution.
from crashedit.
Also, I've been thinking about how to properly render this data recently, and I think the fastest way is probably to generate a bunch of 2d textures, one for every x value, one for every y, one for every z, and render them as double-sided quads. Like say you have a 128x64x256 collision area. That's 129 64x256 textures (one for every x value including 128 and 0) which you would render as 64x256 quads at the given x positions. Same thing with the y and z axis as well. The advantage to this setup is it's more in line with how GPU's deal with this kind of thing, plus it can be done in opengl 1.1 which means you get nearly universal support since windows will emulate 1.1 and mesa will emulate at least 2.0 I believe.
Downside is you don't really get the wireframe rendering like you see in crashutils, though that could be implemented as an optional mode for opengl 2.0 using shaders
from crashedit.
Implemented using shaders with okay-to-not-great performance (right now we upload around (1^x + 1) * (1^y + 1) * (1^z + 1) * 2 * 2
triangles for fill more and around ((1^x * 1^y) + (1^x * 1^z) + (1^y * 1^z)) * 4
lines for wireframe mode) and inability to render non-max-depth nodes correctly. Perfectly usable however.
from crashedit.
Related Issues (20)
- crash edit
- model broken HOT 1
- How to drag Enity entry to New Chunks
- Can't see scenery, only fruits, boxes and other things HOT 2
- Add ability to replace items with exported items. HOT 3
- Bin export problem. HOT 2
- Please, help. HOT 1
- Is it possible now to rip textures and export animations of Crash 1? HOT 5
- Please, help me! (Sorry for bad English, by the way im trying to find the ''beginning zone'') HOT 12
- hey HOT 1
- A lot of errors when opening NSF on Crash 1 HOT 3
- help with level names HOT 2
- Crash 2 Music SEQ and Wavebank problem using VGMTrans
- [todo] rename every instance of "chunk" to "page"
- [todo] show free space next to every page name in tree view
- [todo] integrate NSD support + enforce NSF/NSD pairing
- Scenery Extraction HOT 2
- [file dialogs] remember last used path for each individual context
- [settings] menu for toggling visibility of 3D viewer elements
- Make model viewer more customizable HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crashedit.