Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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 | chip programmers | 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