cleanup the entirety of content
This commit is contained in:
parent
76d982eff7
commit
d7eaed4c03
Binary file not shown.
|
|
@ -1,16 +0,0 @@
|
||||||
// generated by blender2ogre 0.8.3 on 2023-07-11 17:36:32
|
|
||||||
material Material {
|
|
||||||
receive_shadows on
|
|
||||||
technique {
|
|
||||||
pass {
|
|
||||||
diffuse 0.8 0.8 0.8 1.0
|
|
||||||
specular 0.512 0.512 0.512 1.0 64.0
|
|
||||||
|
|
||||||
texture_unit {
|
|
||||||
texture fonts/brick_tex.PNG
|
|
||||||
tex_address_mode wrap
|
|
||||||
colour_op modulate
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.6 KiB |
|
|
@ -1,137 +0,0 @@
|
||||||
material sparkle/sparkleMatl
|
|
||||||
{
|
|
||||||
technique
|
|
||||||
{
|
|
||||||
pass
|
|
||||||
{
|
|
||||||
lighting off
|
|
||||||
depth_write off
|
|
||||||
scene_blend add
|
|
||||||
|
|
||||||
texture_unit
|
|
||||||
{
|
|
||||||
texture sparkle.png
|
|
||||||
colour_op modulate
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sparkle/sparkle1
|
|
||||||
{
|
|
||||||
quota 40
|
|
||||||
material sparkle/sparkleMatl
|
|
||||||
particle_width 1
|
|
||||||
particle_height 1
|
|
||||||
cull_each false
|
|
||||||
renderer billboard
|
|
||||||
sorted false
|
|
||||||
local_space false
|
|
||||||
iteration_interval 0
|
|
||||||
nonvisible_update_timeout 0
|
|
||||||
billboard_type point
|
|
||||||
billboard_origin center
|
|
||||||
billboard_rotation_type vertex
|
|
||||||
common_up_vector 0 1 0
|
|
||||||
point_rendering false
|
|
||||||
accurate_facing false
|
|
||||||
|
|
||||||
emitter Point
|
|
||||||
{
|
|
||||||
angle 180
|
|
||||||
colour 0.3 0.3 0.3 .6
|
|
||||||
colour_range_start 0.25 0.25 0.25 1
|
|
||||||
colour_range_end 0.5 0.5 0.5 1
|
|
||||||
direction 0 -1 0
|
|
||||||
emission_rate 160
|
|
||||||
position 0 0 0
|
|
||||||
velocity_min 5
|
|
||||||
velocity_max 10
|
|
||||||
duration .2
|
|
||||||
time_to_live 1
|
|
||||||
}
|
|
||||||
|
|
||||||
affector Rotator
|
|
||||||
{
|
|
||||||
rotation_speed_range_end 360
|
|
||||||
rotation_range_start 0
|
|
||||||
rotation_range_end 360
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
material explosion/explosionMatl
|
|
||||||
{
|
|
||||||
technique
|
|
||||||
{
|
|
||||||
pass
|
|
||||||
{
|
|
||||||
lighting off
|
|
||||||
depth_write off
|
|
||||||
scene_blend add
|
|
||||||
|
|
||||||
texture_unit
|
|
||||||
{
|
|
||||||
texture explosion.png
|
|
||||||
colour_op modulate
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
explosion/explosion1
|
|
||||||
{
|
|
||||||
quota 400
|
|
||||||
material explosion/explosionMatl
|
|
||||||
particle_width 5
|
|
||||||
particle_height 5
|
|
||||||
cull_each false
|
|
||||||
renderer billboard
|
|
||||||
sorted false
|
|
||||||
local_space false
|
|
||||||
iteration_interval 0
|
|
||||||
nonvisible_update_timeout 0
|
|
||||||
billboard_type point
|
|
||||||
billboard_origin center
|
|
||||||
billboard_rotation_type vertex
|
|
||||||
common_up_vector 0 1 0
|
|
||||||
point_rendering false
|
|
||||||
accurate_facing false
|
|
||||||
|
|
||||||
emitter Point
|
|
||||||
{
|
|
||||||
angle 180
|
|
||||||
colour 0.3 0.3 0.3 .6
|
|
||||||
colour_range_start 0.25 0.25 0.25 1
|
|
||||||
colour_range_end 0.5 0.5 0.5 1
|
|
||||||
direction 0 -1 0
|
|
||||||
emission_rate 20000
|
|
||||||
position 0 0 0
|
|
||||||
velocity 30
|
|
||||||
velocity_min 20
|
|
||||||
velocity_max 30
|
|
||||||
time_to_live 0.3
|
|
||||||
time_to_live_min 0.25
|
|
||||||
time_to_live_max 0.35
|
|
||||||
duration 1.2
|
|
||||||
duration_min 1.2
|
|
||||||
duration_max 1.2
|
|
||||||
repeat_delay 10000
|
|
||||||
repeat_delay_min 10000
|
|
||||||
repeat_delay_max 10000
|
|
||||||
}
|
|
||||||
|
|
||||||
affector DeflectorPlane
|
|
||||||
{
|
|
||||||
plane_point 0 0 0
|
|
||||||
plane_normal 0 1 0
|
|
||||||
bounce 0
|
|
||||||
}
|
|
||||||
|
|
||||||
affector DirectionRandomiser
|
|
||||||
{
|
|
||||||
randomness 0
|
|
||||||
scope 1
|
|
||||||
keep_velocity false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
||||||
material BackMaterial {
|
material materials/BackMaterial {
|
||||||
receive_shadows on
|
receive_shadows on
|
||||||
technique {
|
technique {
|
||||||
pass {
|
pass {
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
||||||
material BottomMaterial {
|
material materials/BottomMaterial {
|
||||||
receive_shadows on
|
receive_shadows on
|
||||||
technique {
|
technique {
|
||||||
pass {
|
pass {
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
||||||
material FrontMaterial {
|
material materials/FrontMaterial {
|
||||||
receive_shadows on
|
receive_shadows on
|
||||||
technique {
|
technique {
|
||||||
pass {
|
pass {
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
||||||
material LeftMaterial {
|
material materials/LeftMaterial {
|
||||||
receive_shadows on
|
receive_shadows on
|
||||||
technique {
|
technique {
|
||||||
pass {
|
pass {
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
||||||
material RightMaterial {
|
material materials/RightMaterial {
|
||||||
receive_shadows on
|
receive_shadows on
|
||||||
technique {
|
technique {
|
||||||
pass {
|
pass {
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
// generated by blender2ogre 0.8.3 on 2023-07-17 02:58:22
|
||||||
material TopMaterial {
|
material materials/TopMaterial {
|
||||||
receive_shadows on
|
receive_shadows on
|
||||||
technique {
|
technique {
|
||||||
pass {
|
pass {
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
material materials/guibase3d
|
material materials/GuiBase3d
|
||||||
{
|
{
|
||||||
technique
|
technique
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
material materials/partinstanced
|
material materials/PartInstanced
|
||||||
{
|
{
|
||||||
receive_shadows on
|
receive_shadows on
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
||||||
# Blender 3.5.1 MTL File: 'None'
|
# Blender 3.5.1 MTL File: 'None'
|
||||||
# www.blender.org
|
# www.blender.org
|
||||||
|
|
||||||
newmtl Material
|
newmtl Cube
|
||||||
Ns 250.000000
|
Ns 250.000000
|
||||||
Ka 1.000000 1.000000 1.000000
|
Ka 1.000000 1.000000 1.000000
|
||||||
Kd 0.800000 0.800000 0.800000
|
Kd 0.800000 0.800000 0.800000
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Blender 3.5.1
|
# Blender 3.5.1
|
||||||
# www.blender.org
|
# www.blender.org
|
||||||
mtllib part_mesh.mtl
|
mtllib Cube.mtl
|
||||||
o FormFactor_Brick
|
o FormFactor_Brick
|
||||||
v 1.000000 1.000000 -1.000000
|
v 1.000000 1.000000 -1.000000
|
||||||
v 1.000000 -1.000000 -1.000000
|
v 1.000000 -1.000000 -1.000000
|
||||||
|
|
@ -31,7 +31,7 @@ vt 0.375000 1.000000
|
||||||
vt 0.375000 0.000000
|
vt 0.375000 0.000000
|
||||||
vt 0.125000 0.750000
|
vt 0.125000 0.750000
|
||||||
s 0
|
s 0
|
||||||
usemtl Material
|
usemtl Cube
|
||||||
f 1/1/1 5/5/1 7/9/1 3/3/1
|
f 1/1/1 5/5/1 7/9/1 3/3/1
|
||||||
f 4/4/2 3/3/2 7/10/2 8/12/2
|
f 4/4/2 3/3/2 7/10/2 8/12/2
|
||||||
f 8/13/3 7/11/3 5/6/3 6/8/3
|
f 8/13/3 7/11/3 5/6/3 6/8/3
|
||||||
|
|
@ -15,22 +15,22 @@
|
||||||
</nodes>
|
</nodes>
|
||||||
<externals >
|
<externals >
|
||||||
<item type="material" >
|
<item type="material" >
|
||||||
<file name="TopMaterial.material" />
|
<file name="../materials/TopMaterial.material" />
|
||||||
</item>
|
</item>
|
||||||
<item type="material" >
|
<item type="material" >
|
||||||
<file name="BackMaterial.material" />
|
<file name="../materials/BackMaterial.material" />
|
||||||
</item>
|
</item>
|
||||||
<item type="material" >
|
<item type="material" >
|
||||||
<file name="BottomMaterial.material" />
|
<file name="../materials/BottomMaterial.material" />
|
||||||
</item>
|
</item>
|
||||||
<item type="material" >
|
<item type="material" >
|
||||||
<file name="FrontMaterial.material" />
|
<file name="../materials/FrontMaterial.material" />
|
||||||
</item>
|
</item>
|
||||||
<item type="material" >
|
<item type="material" >
|
||||||
<file name="LeftMaterial.material" />
|
<file name="../materials/LeftMaterial.material" />
|
||||||
</item>
|
</item>
|
||||||
<item type="material" >
|
<item type="material" >
|
||||||
<file name="RightMaterial.material" />
|
<file name="../materials/RightMaterial.material" />
|
||||||
</item>
|
</item>
|
||||||
</externals>
|
</externals>
|
||||||
<environment >
|
<environment >
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB |
|
|
@ -93,7 +93,7 @@ namespace RNR
|
||||||
|
|
||||||
Ogre::FontPtr pFont = Ogre::FontManager::getSingletonPtr()->create("ComicSans", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
|
Ogre::FontPtr pFont = Ogre::FontManager::getSingletonPtr()->create("ComicSans", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
|
||||||
pFont->setType(Ogre::FT_TRUETYPE);
|
pFont->setType(Ogre::FT_TRUETYPE);
|
||||||
pFont->setSource("fonts/comic.ttf");
|
pFont->setSource("fonts/ComicSans.ttf");
|
||||||
pFont->setTrueTypeSize(16);
|
pFont->setTrueTypeSize(16);
|
||||||
pFont->load();
|
pFont->load();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ namespace RNR
|
||||||
|
|
||||||
bc_prep = true;
|
bc_prep = true;
|
||||||
}
|
}
|
||||||
Ogre::MaterialPtr part_material = Ogre::MaterialManager::getSingletonPtr()->getByName("materials/partinstanced");
|
Ogre::MaterialPtr part_material = Ogre::MaterialManager::getSingletonPtr()->getByName("materials/PartInstanced");
|
||||||
color_material = part_material->clone(Ogre::String("tmp_part/") + Ogre::StringConverter::toString(color_id));
|
color_material = part_material->clone(Ogre::String("tmp_part/") + Ogre::StringConverter::toString(color_id));
|
||||||
Ogre::RTShader::ShaderGenerator::getSingletonPtr()->cloneShaderBasedTechniques(*part_material, *color_material);
|
Ogre::RTShader::ShaderGenerator::getSingletonPtr()->cloneShaderBasedTechniques(*part_material, *color_material);
|
||||||
Ogre::Technique* mat_tech = color_material->getTechnique(0);
|
Ogre::Technique* mat_tech = color_material->getTechnique(0);
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,6 @@ namespace RNR
|
||||||
m_transparency = 0.f;
|
m_transparency = 0.f;
|
||||||
m_visible = true;
|
m_visible = true;
|
||||||
|
|
||||||
m_material = Ogre::MaterialManager::getSingletonPtr()->getByName("materials/guibase3d");
|
m_material = Ogre::MaterialManager::getSingletonPtr()->getByName("materials/GuiBase3d");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace RNR
|
||||||
m_reflectance = 0.0;
|
m_reflectance = 0.0;
|
||||||
|
|
||||||
setNode(world->getOgreSceneManager()->getRootSceneNode()->createChildSceneNode());
|
setNode(world->getOgreSceneManager()->getRootSceneNode()->createChildSceneNode());
|
||||||
setObject(world->getOgreSceneManager()->createEntity("fonts/Cube.mesh"));
|
setObject(world->getOgreSceneManager()->createEntity("meshes/cube.mesh"));
|
||||||
getNode()->attachObject(getObject());
|
getNode()->attachObject(getObject());
|
||||||
|
|
||||||
updateMatrix();
|
updateMatrix();
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ namespace RNR
|
||||||
case BATCH_INSTANCED:
|
case BATCH_INSTANCED:
|
||||||
{
|
{
|
||||||
Ogre::Entity* childEntity = (Ogre::Entity*)childAdded->getObject();
|
Ogre::Entity* childEntity = (Ogre::Entity*)childAdded->getObject();
|
||||||
Ogre::InstancedEntity* replica = m_instanceManager->createInstancedEntity("materials/partinstanced");
|
Ogre::InstancedEntity* replica = m_instanceManager->createInstancedEntity("materials/PartInstanced");
|
||||||
replica->setPosition(part->getPosition());
|
replica->setPosition(part->getPosition());
|
||||||
replica->setOrientation(part->getCFrame().getRotation());
|
replica->setOrientation(part->getCFrame().getRotation());
|
||||||
replica->setScale(part->getSize());
|
replica->setScale(part->getSize());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue