blf.draw(0,ln[:-1])
py += 16
- if CXR_PREVIEW_OPERATOR.LASTERR != None:
- blf.position(0,2,80,0)
- blf.size(0,50,48)
- blf.color(0,1.0,0.2,0.2,0.9)
- blf.draw(0,"This is a stoopid error\nWIthiuawdnaw")
+ #if CXR_PREVIEW_OPERATOR.LASTERR != None:
+ # blf.position(0,2,80,0)
+ # blf.size(0,50,48)
+ # blf.color(0,1.0,0.2,0.2,0.9)
+ # blf.draw(0,"Invalid geometry")
# Something is off with TIMER,
# this forces the viewport to redraw before we can continue with our
for brush in sceneinfo['geo']:
for ms in brush['object'].material_slots:
a_materials.add( ms.material )
+ if ms.material.cxr_data.shader == 'VertexLitGeneric':
+ errmat = ms.material.name
+ errnam = brush['object'].name
+ print( F"Vertex shader {errmat} used on {errnam}")
+ return {'CANCELLED'}
for ent in sceneinfo['entities']:
if isinstance(ent['object'],bpy.types.Collection): continue
for obj in hero['collection'].objects:
for ms in obj.material_slots:
a_materials.add( ms.material )
+ if ms.material.cxr_data.shader == 'LightMappedGeneric' or \
+ ms.material.cxr_data.shader == 'WorldVertexTransition':
+
+ errmat = ms.material.name
+ errnam = obj.name
+ print( F"Lightmapped shader {errmat} used on {errnam}")
+ return {'CANCELLED'}
# Collect images
for mat in a_materials:
"w": 25,
"colour": (0.9,0.5,0.5,1.0),
"exec": "vvis",
- "jobs": [[settings[F'exe_vvis']] + args],
+ "jobs": [[settings[F'exe_vvis']] + ['-fast'] + args ],
"cwd": directory
}]
+ vrad_opt = settings.opt_vrad.split()
static.JOBINFO += [{
"title": "VRAD",
"w": 25,
"colour": (0.9,0.2,0.3,1.0),
"exec": "vrad",
- "jobs": [[settings[F'exe_vrad']] + args],
+ "jobs": [[settings[F'exe_vrad']] + vrad_opt + args ],
"cwd": directory
}]
box.prop(settings, "exe_vbsp")
box.prop(settings, "exe_vvis")
box.prop(settings, "exe_vrad")
+ box.prop(settings, "opt_vrad")
box = box.box()
row = box.row()
--- /dev/null
+#include <stdint.h>
+#include <cstring>
+#include <math.h>
+
+#define RGBCX_IMPLEMENTATION
+#include "rgbcx.h"
+
+extern "C"
+{
+ void rgbcx__init(void)
+ {
+ rgbcx::init();
+ }
+
+ void rgbcx__encode_bc1( uint32_t level, void* pDst, const uint8_t* pPixels, int allow_3color, int use_transparent_texels_for_black )
+ {
+ rgbcx::encode_bc1( level, pDst, pPixels, allow_3color, use_transparent_texels_for_black );
+ }
+
+ void rgbcx__encode_bc3( uint32_t level, void* pDst, const uint8_t* pPixels )
+ {
+ rgbcx::encode_bc3( level, pDst, pPixels );
+ }
+}