Jump to content


Photo

Precise 3D Collisions Dll (P3DC.dll) V6.1


  • Please log in to reply
375 replies to this topic

#61 Docopoper

Docopoper

    You are observant!

  • GMC Member
  • 1287 posts
  • Version:GM:Studio

Posted 25 March 2010 - 05:00 PM

no problem... did it come with a help file? because I made one and wasn't sure if I needed to include it or if it was encoded into the extension. (no... it isn't detailed, just a functions list help file to make up for the lack of script comments.)
  • 0

#62 Docopoper

Docopoper

    You are observant!

  • GMC Member
  • 1287 posts
  • Version:GM:Studio

Posted 25 March 2010 - 05:02 PM

I can also release the editable version of the GEX if you want. (noticed you said GEX only...)
  • 0

#63 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 26 March 2010 - 12:23 AM

I've never used a gex before, so feel free to edit the download link however you want, and I'll change the name to what you want me to.
  • 0

#64 jobro

jobro

    GMC Member

  • New Member
  • 1247 posts
  • Version:GM8

Posted 05 April 2010 - 08:26 AM

It is a nice project, but as nice as it is I can't download it from host-a, and many with me have the same issue. So unless you find some other host, or contact me with the file so I can host it for you on my site (free ofcourse), I won't be able to use / review it properly. It looks very mint in my mind, but how it is in reality I cannot tell with host-a as a file host.

Edited by jobro, 09 April 2010 - 07:25 PM.

  • 0

#65 BlueMoonProductions

BlueMoonProductions

    BlueMoonProductions

  • GMC Member
  • 241 posts
  • Version:GM:Studio

Posted 15 April 2010 - 07:05 PM

Really useful DLL ;)

But its hard to learn, have you got a tut or something?
  • 0

#66 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 15 April 2010 - 11:40 PM

Sorry, not tut just the example.
  • 0

#67 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 16 April 2010 - 06:15 PM

After quite a bit of work, I've created Editor14. It is a 3D level editor which uses a modded version of P3DC.dll to integrate collisions into it. So if you're looking for a 3D level editor, may I suggest you try it. GM8 Only at the moment. (However gm7 support is top priority ATM)
Editor14 Page
  • 0

#68 W0lfbane

W0lfbane

    GMC Member

  • New Member
  • 40 posts

Posted 30 April 2010 - 08:39 AM

Bump


I changed the map to a randomly generated terrain.
I was using the original example2.gmk, but I changed the d3d file


I got 2 problems:

Problem 1:
I was off the map. This was fixed by moving my character on the room editor

Problem 2:
I was 'stuck'
When I spawned, I could jump, but not walk. I tried changing the original 'z' to 500, so I fell to the floor, but I was still stuck.

Can anyone tell me how to fix this?

BTW it is a randomly generated terrain, meaning it is really bumpy, but this shouldn't matter, should it???
  • 0

#69 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 30 April 2010 - 05:57 PM

If it is too bumpy it may not work (ridiculously bumpy, IE: Z changes from 10 to 100 over 1 square of the terrain). I could probably help you if you show me a .gmk (or .gm6), I have 7+8 and can help you. I can't really help you if you show me code, because I need to see how the terrain is made first. A few arguments may need to be changed.

Edited by brett14, 30 April 2010 - 05:59 PM.

  • 0

#70 W0lfbane

W0lfbane

    GMC Member

  • New Member
  • 40 posts

Posted 30 April 2010 - 11:40 PM

Its bumpy like a steep hill in real life - no cliffs or anything

It uses the same code as your example2.gmk, but with a different d3d file, and I changed the code so I would fall from 500z, and start in the top left (in an attempt to not get stuck).

It isn't because it's too bumpy, because I tried with a exported racetrack from sketchup, and it had the same error (still can't move)
and one new one (if there are 2 objects inside each other (I assume that's the problem), the texturing goes mental <-Link)

One thing that may have caused the problem could be that I got a obj, and used anim8or to convert it to d3d (but I doubt it)

Heres the example2.gmk <-Link

[edit]
BTW I have the P3DC v2.00 but its a week or so old - has there been any minor updates that I should have?
[/edit]

Edited by W0lfbane, 01 May 2010 - 12:06 AM.

  • 0

#71 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 01 May 2010 - 07:29 AM

Hasn't been updated in about 5 months, except that Editor14 uses a slightly updated version.
  • 0

#72 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 01 May 2010 - 07:37 AM

can I have the .d3d model? I want to see if it's an error with p3dc's model loading.

[edit]
Sorry, accidental double post...
[/edit]

Edited by brett14, 01 May 2010 - 07:39 AM.

  • 0

#73 W0lfbane

W0lfbane

    GMC Member

  • New Member
  • 40 posts

Posted 01 May 2010 - 10:20 AM

Its a model from sketchup.

I exported it to obj, then converted it to d3d with anim8or.

Here it is <-Link

I didn't get any errors, so I assume it converted 100% OK.

[edit]
Really off topic: Does anyone here know how hard it is to write a speech that is 2 weeks overdue, while listening to rock?
[/edit]

Edited by W0lfbane, 02 May 2010 - 10:34 AM.

  • 0

#74 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 02 May 2010 - 10:40 PM

My guess is that there is an error with the model, because all the code seems to be working fine.
  • 0

#75 W0lfbane

W0lfbane

    GMC Member

  • New Member
  • 40 posts

Posted 03 May 2010 - 04:47 AM

Then it would have to be anim8or's conversion...

The first one I had a problem with was the terrain model. It was generated by LiquidLight (which I believe was made in GM), and exported to .obj

The one I sent you was a racetrack exported from Google Sketchup to .obj

The only thing they have in common was that I used anim8or to convert them to d3d (with the d3d export addon)


It doesn't really make sense though, because the model itself looks fine (apart from the texture). Do you know of a d3d viewer I could use to check it?
  • 0

#76 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 03 May 2010 - 05:15 AM

I know anim8or has had problems with it's conversions in the past where one triangle goes missing, this might be giving P3DC problems. I'm pretty sure Icuurd12b42 (If I spelled it right) has made a model viewer that has the ability to fix this problem, it's most likely in his signature. Anyways if you want the program I used to make the maps (just suggesting) you could use Editor14, I used an older un-released version with no multitexturing to make the included map.
  • 0

#77 W0lfbane

W0lfbane

    GMC Member

  • New Member
  • 40 posts

Posted 03 May 2010 - 09:20 AM

OK. Thanks. Will try Icuurd's program.

Main reason why I'm using sketchup is that I can get models from the online library (and put the owners in the credits) - I actually like modelling, but its too time consuming for me to do atm.

Off Topic: I looked at some other 3d game makers today, and they SUCK. All you get to do is drag models onto a map, and pretend you just made a game. The only way to get decent control is by using a c++ based engine, and I cbf learning c++ atm. I think I'm sticking with game-maker for my school project.

Will edit when I've tried the new d3d

[edit]
Strange. I opened the model in Gmmodelfix, 'fixed' it, and exported as d3d. It was bigger by about 400kb, and looks better, but the textures are still broken, and I still can't move.
Will try turning off texturing, and edit again after
[/edit]
[edit2]
After removing all the texture code:
- The textures still rip
- I still can't move
- The texture seem to be embedded to the d3d (accounting for the extra size), as the map has grass, road, road lines, and cars (all textured)
Download BrokenRacetrack.zip
[/edit2]

Edited by W0lfbane, 03 May 2010 - 10:44 AM.

  • 0

#78 W0lfbane

W0lfbane

    GMC Member

  • New Member
  • 40 posts

Posted 07 May 2010 - 11:57 AM

Legal Bump. See above post
  • 0

#79 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 08 May 2010 - 11:29 PM

Easy fix, remove the code that forces the player inside the room in the step event.

Also in the end step event change ALL the
p3dc_ray_first(...);
to
p3dc_ray_still(...);
With the same arguments

Edited by brett14, 08 May 2010 - 11:29 PM.

  • 0

#80 W0lfbane

W0lfbane

    GMC Member

  • New Member
  • 40 posts

Posted 09 May 2010 - 11:31 AM

Thanks. Will try tomorrow (GMT +12 here, so should be in bed). Assuming it works, it will mean I will now have 3 different programming/scripting projects, and will find it even harder to finish my homework (really cos I cbf doing it) :)

[edit]
Thanks. That works. Texturing still broken (but thats GM, not your dll)

Now how would I go about making the player not go up very steep slopes?
(Racing games are rather unrealistic when you can drive up a near vertical slope)
[/edit]

Edited by W0lfbane, 10 May 2010 - 06:37 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users