Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Edgar_Herrera, VoroneTZ, Akow), 973 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 426 of 554 1 2 424 425 426 427 428 553 554
Re: What are you working on? [Re: Quad] #448570
02/10/15 20:21
02/10/15 20:21
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Yes thats right. I wish it wouldnt but since I own a NVIDIA card I like to use it grin

Re: What are you working on? [Re: Ch40zzC0d3r] #448591
02/12/15 00:43
02/12/15 00:43
Joined: Sep 2007
Posts: 101
Luxembourg
K
krial057 Offline
Member
krial057  Offline
Member
K

Joined: Sep 2007
Posts: 101
Luxembourg
I always loved to hack around on the limits of 3dgs. Today I decided to play around with litec again after a long time. After playing around a bit, I found a way to call struct methods and pass 'this' to it(without actually passing it...). Difficult to explain, here is an example wink

Php Code:

	Test* test1 = newTest();
	test1->GetX = Test_GetX;
	test1->x = 40;
	
	Test* test2 = newTest();
	test2->GetX = Test_GetX;
	test2->x = 80;
	
	printf("Test1: %d | Test2: %d", test1->GetX(), test2->GetX());
 




Will print 40 and 80, even though i newer pass test1 or test2 as parameter to the GetX functions of the struct

regards Alain

EDIT: never mind, it's the same as in this post http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=420134. I used the following macros however to make it simpler:

Php Code:
#define ClassDefStart(className) typedef struct _##className {
#define ClassDefEnd(className) } _##className; typedef interface className { _##className *lpVtbl;} className; className* new##className() {className* r = sys_malloc(sizeof(className)); r->lpVtbl = sys_malloc(sizeof(_##className)); return r;}

ClassDefStart(Test)
	var x;
	var GetX(void* this);
ClassDefEnd(Test) 



Last edited by krial057; 02/12/15 00:53.
Re: What are you working on? [Re: krial057] #448672
02/16/15 12:45
02/16/15 12:45
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace


pistol ,not complete yet..



I just remembered why I suck at this , thought about texturing when its done ..oh crap

Last edited by Wjbender; 02/16/15 14:29.

Compulsive compiler
Re: What are you working on? [Re: Wjbender] #448675
02/16/15 15:24
02/16/15 15:24
Joined: Feb 2010
Posts: 886
Random Offline
User
Random  Offline
User

Joined: Feb 2010
Posts: 886
Looks great to me.
If I would try that, you would probably mistake the gun for a hammer grin



Re: What are you working on? [Re: Random] #448676
02/16/15 15:51
02/16/15 15:51
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Wjbender@ I have to say that it looks just perfect!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: What are you working on? [Re: 3run] #448677
02/16/15 16:29
02/16/15 16:29
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
laugh a hammer would be a cool weapon actually !

it needs iron sights ,ammo clip , ammo clip release button , hammer , the hand grip/bud area needs to be shaped like a palm and thumb can easily fit on it , it needs the brass ejection thing aswell ..

Last edited by Wjbender; 02/17/15 11:26.

Compulsive compiler
Re: What are you working on? [Re: Wjbender] #448692
02/17/15 09:00
02/17/15 09:00
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
finally, empty levels and levels without terrain will be supported by MapBuilder 2.5 (they use zero level as a basis):



Free world editor for 3D Gamestudio: MapBuilder Editor
Re: What are you working on? [Re: sivan] #448701
02/17/15 15:11
02/17/15 15:11
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
did use c_trace before 2.5 to place the entities? ^^

in my editor I basically convert 2d mouse coordinates to 3d, set the z axis (most often 0), and use a direction vector (or whatever it is called) to get the right x and y coordinates. works like a charm laugh

ps: you should outline the object info text of the selected object, its kindy hard to read wink

Re: What are you working on? [Re: Reconnoiter] #448703
02/17/15 15:55
02/17/15 15:55
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
I used different c-trace based placement onto terrain, or terrain+terrain models, or terrain+terrain models+buildings etc. what is post adjusted according to should it snap to tile xy or z or not. It is different for each entity category (4 kinds of foliage, 2 kinds of building, and terrain models).

Now I use Carlos3DGS's contribution to determine mouse pointer's view line intersecting the zero level plane if c-tracing fails. Some adjustment is still needed but works fine.

And thanks, yes, that temporary info text looks badly sometimes, but it is worthy to be kept, I will add a black rectangle or something behind it...


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: What are you working on? [Re: sivan] #448704
02/17/15 16:37
02/17/15 16:37
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Oh snap completely forgot about a snap feature.

anyway nice job and yeah a transparent black rectangle would probably look better than outline text

Page 426 of 554 1 2 424 425 426 427 428 553 554

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