Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AGK2 Snippets

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 14th Nov 2015 10:52 Edited at: 14th Dec 2015 19:03
Hi

I would like to post on the AppGameKit snippets thread, but it's locked : https://forum.thegamecreators.com/thread/203769

So, here is a "collection" of links or usefull codes for 3D or 2D in AGK.
You can post the usefull links you find or some codes if you want .


I) 2D

Some codes are in the snippets : https://forum.thegamecreators.com/thread/203769

Editor

2D Level editor :
- 2D level editor (agk code) : https://forum.thegamecreators.com/thread/215321
- 2D level editor (not agk) : https://forum.thegamecreators.com/thread/210704
- 2D level editor (overlap, not agk) : https://forum.thegamecreators.com/thread/214129

Physic editor :
- Physic editor (agk RUBE editor) : https://forum.thegamecreators.com/thread/209686

II) 3D

1) Tools (Models, level editor...)

1.1) Models export (Blender)

How to export a model from blender to AppGameKit :
- Create/open your model in blender
- scale it at the size you want
- grab/move your model at the origin world : your model center must be at (0,0,0)
- choose : export : Collada (.dae) to have a model (with animation/bones if needed) or Wavefront obj (.obj) to have a model exported in .obj. The dae model seems to be better for agk.
- load your model in AGK.

1.2 Tools & editors

1.2.2) Tools
- 3D animation editor : https://forum.thegamecreators.com/thread/212261
- Model Prop : https://forum.thegamecreators.com/thread/207821

1.2.2) Export a model animated from blender to AGK

- In blender, create or import tour model 3D.
- set up the rigging (bons) and animate your model. You need to create the animations on one action only. You can use the frame to create all the animations you want. Ex : 0-20 : walk, 21 -40 : run, 41-60 : die...
- Export : use the .dae or .x exporter
- Choose the options you want, don't forget to export : animation, animationset, weights, bones or anything you need for animation.

More informations in this thread :
http://https://forum.thegamecreators.com/thread/215998?page=1#msg2574633


1.2.3) Export a complete level from blender (python script by blendman) :
- in blender, create your scene
- duplicate your model (alt+D)
- your models (the name of the mesh in blender) need to have special name for special gameplay. You can named it for example : Npc (for Npc), Mob (for monster), Action (for action object (treasure, teleporter...), Fx (for fx like particle, fire, smoke...)
You can change those name if you want, but you need to change the name in the script (Action, Npc, Mob, Fx, Action...)
- For the moment the script doesn't export the material parameters (emissive color/ color) and the light color/range/type of light, only the position/rotation/scale/dimension

The script.
Use it in blender 2.70, should work in the 2.7x version.






2) 3D objects, general

- pick an object in the scene, with the mouse : https://forum.thegamecreators.com/thread/202106
- limb an object to another : https://forum.thegamecreators.com/thread/202687
- fix an object to another (and herite its rotation/position) : http://www.appgamekit.com/documentation/Reference/3D/FixObjectToObject.htm
- change the pivot of an object : http://www.appgamekit.com/documentation/Reference/3D/FixObjectPivot.htm

3) Lights, postfx

- a bloom example is in the agk shader examples
- shadowmapping example : https://forum.thegamecreators.com/thread/211080

4) Shaders

(3D shaders, not sprite or fullscreen)

- Normal map& specular shader : https://forum.thegamecreators.com/thread/213268
- reflection shader : https://forum.thegamecreators.com/thread/214312
- cubemapping (& skybox) : https://forum.thegamecreators.com/thread/213337
- grass, flag waving effect : https://forum.thegamecreators.com/thread/215529

5) Particles

- Particle example : https://forum.thegamecreators.com/thread/202537
- Another particle example : https://forum.thegamecreators.com/thread/210819


6) Physics / collision

- 3D physic example : https://forum.thegamecreators.com/thread/215731
- object slide : http://www.appgamekit.com/documentation/Reference/3D/ObjectSphereSlide.htm

7) Complete example

- A platformer example : https://forum.thegamecreators.com/thread/215989
AGK2 tier1 - http://www.dracaena-studio.com
haliop_New
User Banned
Posted: 15th Nov 2015 10:24
a small addition
this is for all who wants to create huge 3d worlds with tons of objects.
here there are approx 5000 objects and one render Image
yeah , it needs more work but its a good start.
something that still I find troubles me is that render to image dosent care about 3d objects far vs near it will draw objects according to the array rather then their depth. so press Enter to see what I mean.

sorry about my English , the AppGameKit ide dosent correct me
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Nov 2015 12:39
I've unlocked the thread
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 14th Dec 2015 19:04
Hi

I have updated the first message :
- export animation from blender to agk
- platformer example
AGK2 tier1 - http://www.dracaena-studio.com

Login to post a reply

Server time is: 2024-11-25 13:33:19
Your offset time is: 2024-11-25 13:33:19