What Are You Working On? Mesh Edition - August 2012
650 replies, posted
What are you doing to make it render now, if I may ask?
[QUOTE=Spencer Sharkey;37170561]What are you doing to make it render now, if I may ask?[/QUOTE]
surface.DrawPoly for each segment, and some primitive math
[QUOTE=krassell;37166176][video=youtube;jidQQDQHDU4]http://www.youtube.com/watch?v=jidQQDQHDU4[/video]
'Your idea' is like 2 threads old
Aren't you that guy who asked me for the sourcecode?
---Edit
Nope, just checked.[/QUOTE]
I assume you mean me. I go by the name Splatball on youtube. Sadly, nothing much came of it.
[QUOTE=krassell;37171114]surface.DrawPoly for each segment, and some primitive math[/QUOTE]
For the standalone rectangles just draw a rotated rect
[QUOTE=krassell;37169915]No problem. Did I say that you're a thief? I only pointed out that this was already done before. And about the last statement: your YouTube videos tell me otherwise, but who cares?[/QUOTE]
Ok first off, yes, you did accuse me of using your source code instantaneously thinking that you must be the only one in the world who has thought of this idea. And second, my last statement? What, you mean the bullets fly off first, and then physics added? What exactly are my Youtube videos telling you otherwise? I have 3 videos showing my progress, the first one was just a basic test of stuff flying off the screen, didn't even had bullet textures. Second one shows bullet textures and physics and third one features shells. What are you on about?...
DrawPoly on a dynamic circle isn't worth the performance hit. Just use an animated material.
[hd]http://www.youtube.com/watch?v=_VymTDJ49NQ&feature=plcp[/hd]
It's not bad if you keep the table so the GC isnt going all over the place
It's not bad at all, you hardly get any FPS loss. Max 5 FPS.
[QUOTE=CGNick;37165116][video=youtube;6dRCixp3lgk]http://www.youtube.com/watch?v=6dRCixp3lgk[/video][/QUOTE]
Best HUD 2012 Nominee.
[QUOTE=Remscar;37175901]Best HUD 2012 Nominee.[/QUOTE]
Eh I wouldn't go that far.
Hey Sakarias, Will you be able to turn the aimbot off to just see through walls?
[editline]11th August 2012[/editline]
[QUOTE=CGNick;37180438]Eh I wouldn't go that far.[/QUOTE]
It would since its the only one.
[QUOTE=Pigbear;37181216]Hey Sakarias, Will you be able to turn the aimbot off to just see through walls?
[/QUOTE]
Yes.
You toggle the aim assist with the press of a button.
Okay :D any idea when it is coming out? (Not to nag)
I've made something that most RPers will like. An autoparking script. Whenever you exit your vehicle, it checks if you're in an autopark zone. If you are, it asks you if you want to autopark now, always, not now, or never. If you choose to autopark, it teleports your car into a nice parked position at the nearest empty parking spot. If there is no nearby empty parking spot, it'll notify you.
Pics or it didn't happen:
[img]https://dl.dropbox.com/u/15312597/Screenshots/2012-08-11_1818.png[/img]
[img]https://dl.dropbox.com/u/15312597/Screenshots/2012-08-11_1821.png[/img]
[img]https://dl.dropbox.com/u/15312597/Screenshots/2012-08-11_1822.png[/img]
[img]https://dl.dropbox.com/u/15312597/Screenshots/2012-08-11_1823.png[/img]
Currently only has positions on rp_evocity_v33x, but you can add parking positions for any map easily by editing a Lua table at the top of the file.
does it check to make sure you aren't putting cars on top of players?
[QUOTE=Banana Lord.;37183109]does it check to make sure you aren't putting cars on top of players?[/QUOTE]
It doesn't move the car if there's ANYTHING AT ALL (detectable via hull traces) in the target position.
[QUOTE=Delremos;37159270]So I've decided I may as well post what I've been working on and off for a little while here and there.
[t]http://puu.sh/GuZK[/t]
[/quote]
I agree with everyone else, this is bloody hard to read. Pull a Metroid prime, shove the health centre top, ammunition at bottom right-ish and nightvision / cloak bottom left-ish
Source code: [url]https://dl.dropbox.com/u/15312597/lua/gmod/autoparking/autoparking.lua[/url]
Knock yourselves out
EDIT: And here's how I got the positions. I made two E2's specifically for the job.
The first one is used to define the autoparking "zones".
Code: [url]https://dl.dropbox.com/u/15312597/lua/gmod/autoparking/parking_area_helper.txt[/url]
How to use:
1: Spawn the E2 anywhere on the ground.
2: Left click in one corner of the zone. (I suggest switching to the crowbar so you don't spawn another E2)
3: Right click in the other corner of the zone.
You should now see two holograms where you clicked (colored red), and two more holograms in the "MinCorner" & "MaxCorner" of the zone (colored blue). (If your zone is small enough, a white transparent hologram will also appear).
4: Undo (or otherwise delete) the E2.
It will then automatically print the Lua code you need to chat.
The second one is used to define each individual parking spot.
This E2 uses the same code as the "empty spot detector", except in E2 form instead of Lua. I actually used this E2 to figure out the math, before converting it to Lua :) Because of this, the three holograms you see will accurately indicate the area that the Lua code will check before teleporting the vehicle. It doesn't only check those three areas, however. It uses a hull trace that starts from one hologram and ends at the other, so it actually checks the entire space between the three holograms as well.
Code: [url]https://dl.dropbox.com/u/15312597/lua/gmod/autoparking/parking_spot_helper.txt[/url]
How to use:
1: Spawn a vehicle from one of the mods I used in the images above. The E2 uses the size of this vehicle.
2: Spawn the E2 on the ground, at the center of your parking spot.
3: Hold down left or right mouse button to rotate the holograms (I suggest switching to the crowbar so you don't spawn another E2).
3.5: The red hologram shows which way the vehicles will point when they use this parking spot. If the red hologram is pointing in the complete opposite direction, and you can't get it to face the right way, don't worry. Simply make it face the opposite direction, and then add "+180" to the Lua code yaw.
4: When the holograms are aligned with the parking spot, undo the E2.
The E2 will now print the Lua code you need to chat.
Place the Lua code the two E2s give you in the table at the top of the file.
[img_thumb]https://dl.dropbox.com/u/1285798/LANS.png[/img_thumb]
Started working on LAN hacking stuff from uplink. Currently done: Basic LAN rendering, Simple LAN (Level 0) generator
[QUOTE=Megalan;37185093][img_thumb]https://dl.dropbox.com/u/1285798/LANS.png[/img_thumb]
Started working on LAN hacking stuff from uplink. Currently done: Basic LAN rendering, Simple LAN (Level 0) generator[/QUOTE]
Will I be able to RAT my brothers comp? xD
Edit: Oh sure I am the stupid one.
[QUOTE=Divran;37182714]I've made something that most RPers will like. An autoparking script. Whenever you exit your vehicle, it checks if you're in an autopark zone. If you are, it asks you if you want to autopark now, always, not now, or never. If you choose to autopark, it teleports your car into a nice parked position at the nearest empty parking spot. If there is no nearby empty parking spot, it'll notify you.
Pics or it didn't happen:
-snip-
Currently only has positions on rp_evocity_v33x, but you can add parking positions for any map easily by editing a Lua table at the top of the file.[/QUOTE]
Should defo make it not teleport but actually drive to the parking spot from where it is. Winner nonetheless.
[QUOTE=Pigbear;37182192]Okay :D any idea when it is coming out? (Not to nag)[/QUOTE]
I have no idea to be honest.
When having a set of tasks to finish it's a lot easier to determine how much time it will take to complete them.
I am "self employed" (and I'm pretty sure I'm not alone with this), I don't have a set of tasks to complete.
I simply work on my projects when I have time to and want to.
During development I often detect flaws or other things to improve in order to enhance the player experience (adding new tasks along the way).
This makes it very hard to set a date.
You either set a date and hope that it will be finished at that time or you don't set any date at all and release it when it's finished.
[editline]Valve?[/editline]
I just noticed that I sound a little bit like Valve.
Oh my!
Well Sakarias, I hope you find the time to finish it. Until then, I'll be dreaming about it.
[QUOTE=Donkie;37187022]Should defo make it not teleport but actually drive to the parking spot from where it is. Winner nonetheless.[/QUOTE]
That's a tad harder
[QUOTE=Divran;37187811]That's a tad harder[/QUOTE]
gm_navigation can account for entity hulls, just saying ;)
I'm too lazy :C
[QUOTE=Spencer Sharkey;37187848]gm_navigation can account for entity hulls, just saying ;)[/QUOTE]
Don't you think that using a pathfinding module and programming so cars realistically park is over doing it for a simple little script that was just meant to make things easier?
Anyways if the auto parking ruins the illusion for an RP'er they can park it themselves.
[QUOTE=TGiFallen;37188637]Anyways if the auto parking ruins the illusion for an RP'er they can park it themselves.[/QUOTE]
There's a "Never" button. They can use it! :)
[QUOTE=TGiFallen;37188637]Don't you think that using a pathfinding module and programming so cars realistically park is over doing it for a simple little script that was just meant to make things easier?
Anyways if the auto parking ruins the illusion for an RP'er they can park it themselves.[/QUOTE]
Any how many number of non serious roleplay servers out number the serious ones. If you serious you wouldn't use it. Simple as that. Would be neat to see this actually auto park like Ford Assist feature.
[editline]11th August 2012[/editline]
[thumb]http://puu.sh/QRHH[/thumb]
Currently working on new version of gStats.
[QUOTE=TGiFallen;37188637]Don't you think that using a pathfinding module and programming so cars realistically park is over doing it for a simple little script that was just meant to make things easier?
[/QUOTE]
But Science!
[editline]12th August 2012[/editline]
Also I finally figured out how to find the angle to point the RTS camera at to keep it centered!
I never knew I would be able to use anything taught by my calculus teacher in real life.
[t]http://4stor.com/images/AfPu.png[/t]
Sorry, you need to Log In to post a reply to this thread.