912 Commits

Author SHA1 Message Date
David Vierra
514b3155d1 Add method to SceneUpdateTask to get a model texture.
Uses the ResourceLoader from the texture atlas.
Puts the texture size on the texture where the entity model renderer can find it. Which is wrong.
Kinda gross.
2015-07-11 22:42:39 -10:00
David Vierra
eee4b5bf77 Fix face culling for glass/stained glass blocks.
18 more blocks to go!
2015-07-11 22:41:34 -10:00
David Vierra
725ee72b8f Display red boxes for entities as wireframes
Added PolygonModeNode
2015-07-11 11:38:03 -10:00
David Vierra
fd76076689 WorldView now accepts dropped map items dragged from Library panel
Map items are placed immediately with no "movable" intermediate.

xxx still need placement preview!
and xxx should allow URLs/schematic files/etc to be dropped from Library's Schematic panel, file explorer, etc!
2015-07-11 11:36:20 -10:00
David Vierra
31aec2a932 Library panel now shows a list of the current session's maps, for dragging and dropping 2015-07-11 11:35:04 -10:00
David Vierra
844049b0d4 Add mimeformats.py to support drag and drop 2015-07-11 11:33:24 -10:00
David Vierra
f127d86192 Map item frames now render correctly, right-side up and facing the right direction.
A missing mapTex is now "handled" by omitting the BindTextureNode (should have a placeholder tex)
2015-07-11 11:32:57 -10:00
David Vierra
e6f7513ac7 Red entity boxes no longer intersect the floor. 2015-07-11 11:31:40 -10:00
David Vierra
2e83d1937c Add function to translate MCEdit Face to Painting/ItemFrame Facing 2015-07-11 11:31:11 -10:00
David Vierra
a84ddb848e Fix bad default value in Painting.TilePos
xxx make TilePos version aware
2015-07-11 11:30:46 -10:00
David Vierra
bf380cdcfd Error messages: ItemStackRef -> ItemRef 2015-07-11 11:30:25 -10:00
David Vierra
cadcd74033 Add rough createEntity method to WorldEditor
Add creation support to PCEntityRef
ItemRef.id now handles an absent `id` tag on newly created ItemRefs
2015-07-11 11:30:01 -10:00
David Vierra
90b4678473 SetNBTDefaults now recurses through NBTCompoundAttrs 2015-07-11 11:28:17 -10:00
David Vierra
1f4b01e5f2 Fix bad default value for Item's 'tag' tag 2015-07-11 11:28:00 -10:00
David Vierra
5cad086e56 Fix typo in createMap 2015-07-10 18:27:12 -10:00
David Vierra
22778a9c81 libraryView -> libraryWidget 2015-07-10 13:12:18 -10:00
David Vierra
548e21463b Add ItemFrameMesh to render maps in item frames.
Added getMapTexture to SceneUpdateTask
Added ItemFrames rendering layer
Removed ItemFrame from MonsterRenderer
2015-07-09 16:30:33 -10:00
David Vierra
2812a416e5 Add PCItemFrameEntityRef and bases, rearrange entities.py
EntityRef creation is now dispatched to different classes by ID
2015-07-09 16:29:28 -10:00
David Vierra
55794970ce Split ItemRef off of ItemStackRef 2015-07-09 16:29:28 -10:00
David Vierra
3112a27885 NBTCompoundAttr now parents the CompoundRef it returns to its own CompoundRef 2015-07-09 16:25:11 -10:00
David Vierra
ae8925a8d3 AnvilMapData is now an NBTCompoundRef to parent it to the adapter 2015-07-09 16:24:44 -10:00
David Vierra
52c9dd4391 Added BindTextureNode 2015-07-09 16:24:13 -10:00
David Vierra
1cc058c064 Fix wall torches being tilted into their attached block
Need to check all other models to see what this affected!
2015-07-09 12:01:06 -10:00
David Vierra
f46ce88d9a Import Image as Map now implemented.
Removed mapCache from WorldEditor (questionable)
createMap ignores idcounts.dat and updates it.
Catch LevelFormatErrors while getting map datas.
2015-07-09 11:09:51 -10:00
David Vierra
d60ff4c552 Change "Expand" checkbox to "Stretch Tiles" in map import UI 2015-07-09 09:23:29 -10:00
David Vierra
926b873c75 Display error text in long description 2015-07-09 09:23:03 -10:00
David Vierra
740dcb0e0f Don't reverse tracebacks 2015-07-09 09:22:48 -10:00
David Vierra
5c4ab7a592 Add an error dialog and use it to show plugin load/unload errors.
Will be used later for errors in plugin execution and general errors from signal handlers and etc.

"Copy to PasteBin" still not implemented.
2015-07-08 13:32:36 -10:00
David Vierra
0584827087 Fix duplicate entries in generator types list, add some loggers 2015-07-07 12:51:04 -10:00
David Vierra
6bf52bbbaa Fool around with an L-system for drawing Hilbert curves. 2015-07-07 06:18:01 -10:00
David Vierra
72f7bd0d2e Add a DefaultVisibleLayers for WorldScenes which don't get their visible layers configured by a WorldView 2015-07-07 06:17:22 -10:00
David Vierra
3f260ab63e More work on map editor UI.
Displays existing maps and the splits for the imported map. Still can't actually import maps or edit them externally.
2015-07-06 14:47:47 -10:00
David Vierra
fdd30f3f68 Some nonsense to help debug a WTF error
AttributeError: 'PySide.QtOpenGL.QGLContext' object has no attribute 'setData'
2015-07-05 13:55:36 -10:00
David Vierra
339a75ec61 Begin working on map item editor 2015-07-05 13:37:50 -10:00
David Vierra
bc2e24aeb5 NBTFormatError is now a kind of LevelFormatError 2015-07-05 12:32:15 -10:00
David Vierra
43c4c3c722 Disable profiling in with_cython.pyx 2015-07-05 11:09:36 -10:00
David Vierra
814237995e Remove unused var and obsolete comment 2015-07-05 01:42:20 -10:00
David Vierra
dce1495dd5 updateLightsByCoord coerces its coord arrays to ndarray for faster iteration 2015-07-05 01:27:24 -10:00
David Vierra
d1eda07ac1 Platform specific directories now have one module for each platform.
Added some notes about install mode and build scripts
sys.executable is no longer used.
Added getSrcFolder for finding the src/ folder of a source checkout.
2015-07-05 00:36:56 -10:00
David Vierra
1e4ae2e688 Experiment with having copyBlocks issue lighting updates only for blocks whose opacity or brightness changed.
copyBlocks accepts more values for updateLights
time_relight_manmade has another option to select the scheme of issuing updates

Add some tests results, conclusions, and blabber to time_relight_manmade
2015-07-03 08:06:09 -10:00
David Vierra
12e0ff3a22 setLight doesn't dirty the chunk if no section was found/created. 2015-06-30 19:35:38 -10:00
David Vierra
b5a8148609 Same tweaks for block_copy output 2015-06-30 19:35:02 -10:00
David Vierra
d85a6f9e03 Tweak benchmark output 2015-06-30 19:34:27 -10:00
David Vierra
2509b7e15e Fix a really stupid bug in the relight benchmark. 2015-06-30 10:50:09 -10:00
David Vierra
d347035139 Try very hard to fix solid blocks getting light values.
Caused by overflow of signed char value: 255 opacity treated as -128
2015-06-30 09:34:06 -10:00
David Vierra
4d878c86c1 Odd shaped chunk sections are now forbidden. Begin removing special cases.
SchematicFileAdapter tries very hard to present uniformly shaped sections and so should you.
2015-06-30 08:21:20 -10:00
David Vierra
0d59ad9c95 Note negative result with unordered_map 2015-06-30 08:09:54 -10:00
David Vierra
8dabab612c Disable initialized check for memory views. 2015-06-30 07:46:36 -10:00
David Vierra
cbfe5c91b0 Call stats are now conditionally compiled. 2015-06-30 07:43:06 -10:00
David Vierra
9103c363f8 Disable Cython array bounds checking, assert array shapes in cacheSection
An assert is fine here - if any WorldEditor adapters don't validate the array shapes, you lose.
2015-06-30 07:22:14 -10:00