xenno
Member
|
Like WIKI
I miss a place with tutorials, and some sources where search for help.
For example, i've seen in others engines a special forum where people post it's own tutorials or code snippet.
After an approval from admins, this code can be move to wiki.
I think could be good for those ppl who want to put his source code for everyone (ie: simple first person camera, weapon systems, playing with phisics, ...), but a place where discute and find the best solutions for problems (best way to implement a weapon system, or rts camera,....).
My PC:
Proccessor: Core2 Quad Q9650
Ram: 4GB
HD: 500 Gb
Video Card: 285GTX 1Gb
Microsoft Windows Vista
|
|
12-16-2008 11:41 AM |
|
Esenthel
Administrator
|
Re: Like WIKI
Hi,
This is a good idea, definitely since more and more people are starting to use the engine.
How do you suggest it could be accomplished?
I can always set a new Forum called "User Code Samples" this would be the easiest for me if you have other ideas how to do that let me know.
thanks!
|
|
12-17-2008 01:20 PM |
|
xenno
Member
|
Re: Like WIKI
I think by now it's enough with 2 forum inside one called contributions(?).
- Code snippet (ppl post his code and others help to optimize it)
- Petitions (Where people can ask for some special code (?)
First forum can have some special rules:
1.- Post Code (+ screen shot if necessary, because all love to see in game shots) in the first post.
2.- If the code change during a discusion, change it in the first post (All we hate to search through pages for to get the final code xD)
3.- NO SPAM xD
4.- Well documented source (for those who don't see why you do that). Less important, but good to be in mind.
I think it could help you when community goes bigger, and other people can answer some question. (i'm sure you prefer to program than answer questions )
My PC:
Proccessor: Core2 Quad Q9650
Ram: 4GB
HD: 500 Gb
Video Card: 285GTX 1Gb
Microsoft Windows Vista
|
|
12-17-2008 07:11 PM |
|
lucifer1101
Member
|
Re: Like WIKI
i currently have actually been planning to make a wiki for this engine, but i will ned to finish the wiki for another engine before i can start on this.
|
|
12-22-2008 11:29 PM |
|
craksy
Member
|
Re: Like WIKI
i have one, but the finished code have some problems... if you could help me tell what wrong witht the code, so i can change that part of the tutorial, i can upload it!
the problem is that the character mesh, is not drawing, and when you move around, the camara is kinda bumby, like lagg or something :/
heres the code:
Code:
/******************************************************************************/
#include "stdafx.h"
/******************************************************************************/
struct Player : Game::Chr
{
virtual Bool update();
};
/******************************************************************************/
Bool Player::update(){
input.anglei.x=Kb.b(KB_A)-Kb.b(KB_D);
input.diri.z=Kb.b(KB_W);
input.jump =(Kb.bp(KB_SPACE) ? 3.5 : 0);
return __super::update();
}
/******************************************************************************/
Actor ground;
Player player;
/******************************************************************************/
void InitPre()
{
App.name="Start";
App.flag=APP_NO_FX;
IOPath="../data/";
PakAdd("../data/engine.pak");
}
/******************************************************************************/
Bool Init()
{
player.create(Vec(0,0,0),1.8,"../data/obj/chr/human/0.mesh");
ground .create(Box(15,1,15,Vec(0,-2,0)),0);
Physics.create();
return true;
}
/******************************************************************************/
void Shut()
{
}
/******************************************************************************/
Bool Main()
{
if(Kb.bp(KB_ESC))return false;
Physics.sim().get();
player.update(); // update player
Cam.at = player.ctrl.actor.pos()+Vec(0,1,0)
Cam.yaw = player.angle.x
Cam.pitch = player.angle.y
Cam.roll = 0
Cam.dist = 5*ScaleMul(Ms.wheel*-0.2)
Cam.setSpherical(Cam.at, Cam.yaw, Cam.pitch, Cam.roll, Cam.dist)
return true;
}
/******************************************************************************/
void Draw()
{
D.clear();
LightDir(1,Cam.matrix.z).set();
ground.draw(); // draw ground actor
player.draw(); // draw player
}
/******************************************************************************/
i changed a little bit in the original tutorial, to have only the absolute basics... also simplyfied the Cam part a little bit
|
|
01-03-2009 02:24 PM |
|
Esenthel
Administrator
|
Re: Like WIKI
you should remove App.flag=APP_NO_FX;
and create physics Physics.create();
before object creation
thats nice that you've created a tutorial, but I don't think it makes much sense to post it since its the same thing as in SDK but with few lines deleted,
what would be nice is to have totally new tutorials, not present in the SDK, so other users may see some new stuff
|
|
01-03-2009 03:00 PM |
|
craksy
Member
|
Re: Like WIKI
yea, i know, but i have much more explanation... i dont know how well its explained, but its there
anyway, i think ill play around with the particle system, and make some examples on how to apply it in your game, like making torches and such.
also maybe see if i can come up with some new effects, that arent in the particle tutorial..
do you think it would be more usefull?
|
|
01-03-2009 03:50 PM |
|