ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Announcements and Showcase
forum topic indicator WIP Space Game stuff
person icon
chicoporter
Registered User
Quote
2025-10-06 14:54:25

I've been experimenting with ai. So far, these files are the ones working, for the most part.

[url]https://chicoporter.itch.io/3rd-person-spaceship-controls[/]

person icon
guest_Sam
Guest
Quote
2025-10-07 05:59:57

good stuff , works really well!

Heres some code to hide a flare when behind an object i use for light flare.

Works level in a game level.

not sure how it will look with sun, lol

Goes in the camera, only needs to be executed even few seconds. so about 64ms

Sam


var startPos3D = ccbGetSceneNodeProperty(ccbGetActiveCamera() , "Position");

var sm = ccbGetSceneNodeFromName("flare");

var endPoint3d = ccbGetSceneNodeProperty(sm,"Position");

//*------------------------------------------------------------------------------------------------------------------------------------------
var col_point = ccbGetCollisionPointOfWorldWithLine(startPos3D.x, startPos3D.y, startPos3D.z, endPoint3d.x, endPoint3d.y, endPoint3d.z)

if (col_point == null )

{

ccbSetSceneNodeProperty(sm , "Visible",true);

}else {

ccbSetSceneNodeProperty(sm , "Visible", false);
}


//*-----------------------------------------------------------------------------------------------------------------------------------------
// end

person icon
guest_Sam
Guest
Quote
2025-10-12 01:31:45

The controls make me think of Freelancer. good stuff!


Sam

person icon
guest
Guest
Quote
2025-10-12 02:15:55

it's only 2DOF, bruh

person icon
chicoporter
Registered User
Quote
2025-10-16 14:34:41

I loved Freelancer! I'll post some other stuff I'm doing for my game.

person icon
guest_Sam
Guest
Quote
2025-10-22 02:09:10

Freelancer is still my favorite space sim. Ive liked the others. But its the G.o.a.t. lol

As for the 2dof. Wouldn't be hard to add rotation q and e keys like freelancer.. it's may have just rotated the world instead of the ship.

I look forward to seeing what else you have done.


Ive been hacking up just in case , pixel light shader. Ive got it working with light maps now. And have made the lights a bit brighter. Specular can be occluded if you also use the light map as a secular map.. or atleast it dims. Im new to shaders so , just muddling through. Lol also need to add the position of a light when its a child of another node ( like the camera) .

I can't release it, but if get something decent going , I can send it to him. To do with as he pleases.


Sam.

person icon
chicoporter
Registered User
Quote
2025-11-02 15:07:29

I have more:
https://chicoporter.itch.io/


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |