Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.






vortxEDIT : Save

Posted by Lee A. Stripp, 17 October 2012 · 468 views

Been working hard at getting a save project feature working in vortxEDIT. This output will also be used by the Engine to load games
Small changes to the asset manager were done.

Here is the project file output so far. Just getting the basic elements down.
# vortxEDIT v1.0 by Lee A. Stripp
# Shaders
add_shader light_tex_dn
add_shader quad
add_shader debug
# Assets
add_asset texture data/textures/tech_2_2_d.tga
add_asset texture data/textures/tech_2_2_n.tga
add_asset mesh data/meshes/Cube.vbm
# Controls
add_composite Composite
add_scene Scene
add_object Quad Scene
add_camera Camera Scene
add_pass DR Scene
add_viewer Viewer
add_scene Scene
add_object Scene#Grid Scene
add_camera Camera Scene
add_light point Light Scene
add_object Point#Light#Empty Light
add_object Test#Cube Scene
add_pass FBO Scene
# EOF

I have also been working on a saveGameState() function that will save the current state the game is in, a save game if you will.




Asset Manager changes.
  • Dynamic Load/Free of Asset data.

I can now free an asset and reload its data without loosing links to all objects using it. When to free and reload data is another thing to work on. Should I leave this up to the coder or both engine control and coder control? When I start my game I'll add more control.
Oh... I also added IOS 6 support to the iPhone/iPad examples, some things broke, it was all working fine in IOS 5.1. Bloody apple :-) This was not the engine but the Cocoa API, Grrrr.
Save file update

# vortxEDIT v1.0 by Lee A. Stripp
# Shaders
add_shader light_tex_dn
add_shader quad
add_shader debug
# Assets
add_asset texture data/textures/tech_2_2_d.tga
add_asset texture data/textures/tech_2_2_n.tga
add_asset mesh Composite#Quad
add_asset mesh data/meshes/Cube.vbm
# Controls
add_composite Composite
add_scene Scene
add_object Quad Scene (0,0,0) (0,0,0) (1,1,1) Composite#Quad
add_camera Camera Scene (0,0,-0.5) (0,0,0) (1,1,1)
add_pass DR Scene
add_viewer Viewer
add_scene Scene
add_camera Camera Scene (0,1.7,-7.5) (8,0,0) (1,1,1)
add_light point Light Scene (1,2,-5) (0,0,0) (1,1,1)
add_object Test#Cube Scene (0,1,0) (0,0,0) (1,1,1) data/meshes/Cube.vbm
add_pass FBO Scene
# EOF
And yet another update.. Now showing how I link up any connections that can't be made at scene build time. For example Lights may not of been added to the scene yet and I need to link them to objects etc...

# vortxEDIT v1.0 by Lee A. Stripp

# Shaders
add_shader light_tex_dn
add_shader quad
add_shader debug

# Assets
add_asset texture data/textures/tech_2_2_d.tga
add_asset texture data/textures/tech_2_2_n.tga
add_asset mesh Composite#Quat
add_asset mesh data/meshes/Cube.vbm

# Controls
add_composite Composite
add_scene Scene
add_object Quad Scene (0,0,0) (0,0,0) (1,1,1) Composite#Quat
add_camera Camera Scene (0,0,-0.5) (0,0,0) (1,1,1)
add_pass DR Scene Camera Camera
add_viewer Viewer
add_scene Scene
add_camera Camera Scene (0,1.7,-7.5) (8,0,0) (1,1,1)
add_light point Light Scene (1,2,-5) (0,0,0) (1,1,1)
add_object Test#Cube Scene (0,1,0) (0,0,0) (1,1,1) data/meshes/Cube.vbm
add_pass FBO Scene Camera Camera

# Control Links
find_control Composite
find_scene Scene
find_control Viewer
find_scene Scene
link_light Light Test#Cube

# EOF

November 2014 »

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526 27 2829
30      

Recent Comments

PARTNERS