Author Topic: [Code Concept] Placed object detection in ast/deb field generation?  (Read 3258 times)

0 Members and 1 Guest are viewing this topic.

Offline T-Man

  • 210
  • I came... I saw... I had a cuppa!
[Code Concept] Placed object detection in ast/deb field generation?
Q for the coders. Assuming it doesen't already, do you think it would be possible to make the generation system for asteroid/debris fields able to detect objects that start the mission within their box, so that they don't place asteroids inside models? Thought in mind is that modellers can then model and place huge asteroids to add some environmental aspects to missions set in fields (like asteroids with caves and alcoves to hide ships, perhaps even tunnels if the AI is ever accurate enough to navigate them), and it would stop the engine wasting asteroids by putting them inside these large models.

Any thoughts/ideas come to your heads, or no go for now?
Cheers
Also goes by 'Murasaki-Tatsu' outside of Hard-Light

UEF fanboy. Rabid Imagination.

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
Re: [Code Concept] Placed object detection in ast/deb field generation?
Looking at the asteroids code, it should be perfectly feasible to do that.

 

Offline T-Man

  • 210
  • I came... I saw... I had a cuppa!
Re: [Code Concept] Placed object detection in ast/deb field generation?
Looking at the asteroids code, it should be perfectly feasible to do that.
If so, that would be fantastic. :yes:
Also goes by 'Murasaki-Tatsu' outside of Hard-Light

UEF fanboy. Rabid Imagination.

 
Re: [Code Concept] Placed object detection in ast/deb field generation?
That would be great!

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: [Code Concept] Placed object detection in ast/deb field generation?
Oh please yes. I have a station that starts in an asteroid field. About 50% of the times that I run the mission there are multiple asteroids intersecting its hull...
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: [Code Concept] Placed object detection in ast/deb field generation?
You can counter this using "inner box" inside an asteroid field. Though I agree that a proper fix would be better.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: [Code Concept] Placed object detection in ast/deb field generation?
it seems like it wouldn't be too hard to radius check every ship with an asteroid each time one is spawned. but what the hell do i know.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: [Code Concept] Placed object detection in ast/deb field generation?
The respawn code already has code designed to do this (so that ships don't respawn inside another model). So all you'd need to do is to call that.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Cyborg17

  • 29
  • Life? Don't talk to me about life....
Re: [Code Concept] Placed object detection in ast/deb field generation?
Awesome.  It is a big immersion breaker to play a mission with a stationary asteroid field and then see 2 or 3 asteroids sticking out of an Orion.

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: [Code Concept] Placed object detection in ast/deb field generation?
You can counter this using "inner box" inside an asteroid field. Though I agree that a proper fix would be better.

Can't do an inner box for a passive asteroid field.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline T-Man

  • 210
  • I came... I saw... I had a cuppa!
Re: [Code Concept] Placed object detection in ast/deb field generation?
You can counter this using "inner box" inside an asteroid field. Though I agree that a proper fix would be better.
Can't do an inner box for a passive asteroid field.
Another key aspect is the inner box, while brilliant for making clearings or routes for ships to move, can only work in a single instance. This new system should allow multiple instances in a single level and allow the asteroids to be placed close to the object should the player or computer so wish.
Also goes by 'Murasaki-Tatsu' outside of Hard-Light

UEF fanboy. Rabid Imagination.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: [Code Concept] Placed object detection in ast/deb field generation?
You can counter this using "inner box" inside an asteroid field. Though I agree that a proper fix would be better.

Can't do an inner box for a passive asteroid field.
You can't? I though that it works for passive fields too, and that it'd make it so no asteroids will be spawned there (and the ones that move into it would be deleted). I could be wrong though, it's been a while since I messed with asteroid fields in FRED.

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: [Code Concept] Placed object detection in ast/deb field generation?
You can counter this using "inner box" inside an asteroid field. Though I agree that a proper fix would be better.

Can't do an inner box for a passive asteroid field.
You can't? I though that it works for passive fields too, and that it'd make it so no asteroids will be spawned there (and the ones that move into it would be deleted). I could be wrong though, it's been a while since I messed with asteroid fields in FRED.

You are wrong, because I just checked.. otherwise I wouldn't have stated so factually that you can't use an inner box for passive fields.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: [Code Concept] Placed object detection in ast/deb field generation?
You can define it though. Odd.