|
2 registered members (Quad, TipmyPip),
6,316
guests, and 3
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Runtime CSG Subtract
[Re: XD1v0]
#270348
06/07/09 20:11
06/07/09 20:11
|
Joined: Oct 2008
Posts: 513
Carlos3DGS
OP
User
|
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: 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?
|
|
|
Re: Runtime CSG Subtract
[Re: Carlos3DGS]
#270350
06/07/09 20:22
06/07/09 20:22
|
Joined: May 2002
Posts: 7,441
ventilator
Senior Expert
|
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
Expert
|
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
|
|
|
|