N3XTD: 3D engine

Developed or developing a new product in PureBasic? Tell the world about it.
Thalius
Enthusiast
Enthusiast
Posts: 711
Joined: Thu Jul 17, 2003 4:15 pm
Contact:

Re: N3XTD: 3D engine

Post by Thalius »

Exactly what i wonder - since theres soo many flavors of linux out there ;)
btw you need to recheck your rapidshare account ( cant dl it ) ;) If you need some free ftp space lemme know i could make you an account. :)

Cheers,
Thalius
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone! ;)"
hotline
New User
New User
Posts: 1
Joined: Thu Oct 15, 2009 2:47 pm

Re: N3XTD: 3D engine

Post by hotline »

Veeery nice ! works without any problem or bug for me ! :D There is just one thing i`m miss : the collision system. Not physics but classic ellispoid or box sliding collision on large meshes .

Otherwise it`s perfect ! keep up the good work tmyke !and good luck for the future versions !:D cheers
tmyke
Enthusiast
Enthusiast
Posts: 132
Joined: Fri Sep 29, 2006 1:10 pm
Location: France

Re: N3XTD: 3D engine

Post by tmyke »

hotline wrote:There is just one thing i`m miss : the collision system. Not physics but classic ellispoid or box sliding collision on large meshes .
I'll see to add it inside the next update ;)
hotline wrote:Otherwise it`s perfect ! keep up the good work tmyke !and good luck for the future versions !:D cheers
Thx :)
Strength and wisdom.
Image
User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

Re: N3XTD: 3D engine

Post by chi »

sorry for my noobish question but... how can i rotate/turn my camera smooth?

usually i use following code (blitz3d):

Code: Select all

If MouseDown(1)
	mx#=CurveValue(MouseX()-width/2,mx,6)
	my#=CurveValue(MouseY()-height/2,my,6)
	MoveMouse width/2,height/2
	pitch#=pitch+my/10
	yaw#=yaw-mx/10
	RotateEntity cam,pitch,yaw,0
EndIf

Function CurveValue#(newvalue#, oldvalue#, increments)
	If increments >  1 Then oldvalue# = oldvalue# - (oldvalue# - newvalue#) / increments 
	If increments <= 1 Then oldvalue# = newvalue# 
	Return oldvalue# 
End Function
...which works as expectet! but the same with n3xtd:

Code: Select all

If iGetMouseEvent(#mouse_button_left)
  mx.f=Curve(iGetMouseX()-width/2,mx,6)
  my.f=Curve(iGetMouseY()-height/2,my,6)
  iPositionCursorControl(width/2,height/2)
  pitch.f=pitch+my/10
  yaw.f=yaw-mx/10
  iRotateNode(*cam,pitch,yaw,0)
EndIf

Procedure.f Curve(newvalue.f, oldvalue.f, increments)
  If increments >  1 : oldvalue.f = oldvalue.f - (oldvalue.f - newvalue.f) / increments : EndIf
  If increments <= 1 : oldvalue.f = newvalue.f :EndIf
  ProcedureReturn oldvalue.f
EndProcedure
... doesn´t work at all! WHY??? ;)

thx, chi
Et cetera is my worst enemy
tmyke
Enthusiast
Enthusiast
Posts: 132
Joined: Fri Sep 29, 2006 1:10 pm
Location: France

Re: N3XTD: 3D engine

Post by tmyke »

There is a bug with the management functions of the mouse. I am trying to fix this, and I think it will be fixed in the next update
on Monday if all goes well.
Strength and wisdom.
Image
User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

Re: N3XTD: 3D engine

Post by chi »

thanks tmyke! that will fix a lot for me ;)

cheers, chi
Et cetera is my worst enemy
tmyke
Enthusiast
Enthusiast
Posts: 132
Joined: Fri Sep 29, 2006 1:10 pm
Location: France

Re: N3XTD: 3D engine

Post by tmyke »

Updated as promised (a little earlier than expected, for once ...).

Well, I think I have quite improved the management of the mouse. Refer to the example 005_QuakeLevel
to see the result.
I added some functions related to collisions, illustrated by the example 055_CharacterControl.

Over two three reworked stuff, that's short.

I work for N3xtD adapt to the latest version of Irrlicht (v1.6).
Strength and wisdom.
Image
User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

Re: N3XTD: 3D engine

Post by chi »

OMG :D thx!

now i can definitely work with n3xtd...
Et cetera is my worst enemy
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Re: N3XTD: 3D engine

Post by byo »

Your 3D engine is getting better day by day, tmyke.
Keep up the good work. :)

How about a Blitzmax port as well?
Proud registered Purebasic user.
Because programming should be fun.
tmyke
Enthusiast
Enthusiast
Posts: 132
Joined: Fri Sep 29, 2006 1:10 pm
Location: France

Re: N3XTD: 3D engine

Post by tmyke »

byo wrote:How about a Blitzmax port as well?
the couple would be Bmax + N3xtD certainly very interesting.

some time ago, Szafir working on that. I do not know or it is.
http://www.n3xt-d.org/_forum/viewtopic.php?f=11&t=85
Strength and wisdom.
Image
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Re: N3XTD: 3D engine

Post by byo »

Cool. :D
Proud registered Purebasic user.
Because programming should be fun.
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Re: N3XTD: 3D engine

Post by Artus »

Hio tmyke,

i have test the Engine, and after all samples, i still don't understand the "shaders". You have a lot of shader samples and everyone is different. Can you make one Sample with the standart shader, who have include: normal map, specular and HDR bzw glow.

With greetings from Germany
Arthur
tmyke
Enthusiast
Enthusiast
Posts: 132
Joined: Fri Sep 29, 2006 1:10 pm
Location: France

Re: N3XTD: 3D engine

Post by tmyke »

Hy Artus.

I think you talk about shaders hight level. the sample n°201 that shows how to implement this type of shader.
Otherwise, I can not yet make a substantial list of shader for testing.
And I can still make a less comprehensive tutorial on the shaders themselves.I do not have enough time for that.
But once the engine becomes more mature, so I take time to enjoy myself more seriously with the shaders, and I
think I'd make a dedicated package. ;)
Strength and wisdom.
Image
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Re: N3XTD: 3D engine

Post by Artus »

But without the shader, for me is your engine useless. I need that, so i do not can make a projekt with it and i do not can help you by Bug-Report or something support who help you to develop your engine. And i need 3D for a project^^.

With greetings from Germany
Arthur
tmyke
Enthusiast
Enthusiast
Posts: 132
Joined: Fri Sep 29, 2006 1:10 pm
Location: France

Re: N3XTD: 3D engine

Post by tmyke »

I understand perfectly. That said, the shader uses N3xtD are GLSL or HLSL standard found almost everywhere.
This is by no codes specific to the engine. So you can take any bank or shader tutorial and use them with N3xtD. :mrgreen:
Strength and wisdom.
Image
Post Reply