Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 5,207 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Runtime CSG Subtract #270170
06/06/09 17:25
06/06/09 17:25
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
I was wondering if this was possible. I was wondering if i could make a small long block go through a larger (but thinner) block, and then in-game do something similar to the CSG-subtract command in wed. But I would like to do this at runtime with code. Is it possible?
(It would be great to be able to make holes in walls at runtime!)


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Runtime CSG Subtract [Re: Carlos3DGS] #270173
06/06/09 17:34
06/06/09 17:34
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline
Member
XD1v0  Offline
Member

Joined: Jun 2008
Posts: 151
Ukraine
Quote:
It would be great to be able to make holes in walls at runtime!

i think that is possible, but if do holes using this method you must use very fast computer, you can just imagine how many solid block you can get if crate few holes.


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: Runtime CSG Subtract [Re: XD1v0] #270186
06/06/09 18:11
06/06/09 18:11
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
I thought CSG Subtract dosn't create more blocks. Wouldn't it just be the same block with a few more faces (for the new shape)?


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Runtime CSG Subtract [Re: XD1v0] #270348
06/07/09 20:11
06/07/09 20:11
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
I have been looking at it in the manual, and in the section on about the wed edit menu it says:

Quote:
CSG Subtract: Works very much like a cookie cutter. It carves holes out of solid blocks using the selected object as the cutting shape. It removes the portions of other blocks intersecting the selected object. The texture of the cutter is assigned to the cut planes. This function is often used to 'chop off' pieces from blocks, or to break open the wall inbetween adjacent rooms to make a doorway. !! This function only works with convex blocks (not groups), and divides the block into a group of sub-blocks. The block texture must not be locked.


Anyway, does anyone know if this can be done during the game (at runtime) with code?


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Runtime CSG Subtract [Re: Carlos3DGS] #270350
06/07/09 20:22
06/07/09 20:22
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
sure, it can be done but it isn't that easy. you could use a library like carve-csg.

Re: Runtime CSG Subtract [Re: ventilator] #270392
06/08/09 06:33
06/08/09 06:33
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
if there's any other way that you could break the wall (for example: assemble it from 9 block models) I'd advice you to use this. Even non-runtime, people where always advicing to use csg subtract very sparely (can create small thin surfaces, can get your blocks pretty messed up, doesn't look too good). So at runtim I'd try not to use it if I were you.
That being said, if your object that has to cut into the wall isn't just a normal block but a more complex shape, you could create still create the wall from multiple blocks and then replace the block where the "cutter" hits the wall with a block that has already been carved into, then it yould look like the cutter just cut into the wall. If your cutter can hit the wall at different angles, however, that's not an option...


~"I never let school interfere with my education"~
-Mark Twain

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1