|
roomforthetuna posted:Is the laser sweeping laterally (like always pointing due north while moving west to east) or rotationally (pointing northwest and sweeping through to pointing northeast)? Instead I have a new problem. Because the origin of the beam is usually above the player, if the player stands right next to the origin the beam will fire in a very narrow arc almost straight down at the ground. I want the beam to always follow a large sweeping arc so I'm trying to set a minimum angle for the beam's target, but I have no idea how to change only one axis of a Quaternion. code:
|
# ? Nov 13, 2013 00:06 |
|
|
# ? Jun 13, 2024 04:59 |
|
Is this a non kinematic rigidbody? That would cause problems if you aren't using rigidbody.MovePosition to move it. That seems a bad candidate for relying on collision anyway though. I would spherecast or whatever from the laser origin down its length to determine a hit and remove the collider and rigidbody. As I am fairly math stupid, I tend to abuse functions like LookRotation to solve these kinds of rotation problems without having to muck around with determining my rotation directly. I would look into examples of how people handle turrets. There is a lot of information on that on Unity Answers about rotating within constraints that would seem relevant to your problem.
|
# ? Nov 13, 2013 01:20 |
|
FuzzySlippers posted:Is this a non kinematic rigidbody? That would cause problems if you aren't using rigidbody.MovePosition to move it. That seems a bad candidate for relying on collision anyway though. I would spherecast or whatever from the laser origin down its length to determine a hit and remove the collider and rigidbody. Also the rigid body is of course kinematic. I wouldn't want the beam to be moved or obstructed by anything other than the script. The collision part of it actually seems to be working perfectly, so I might just keep it the way it is for now. Lork fucked around with this message at 02:21 on Nov 13, 2013 |
# ? Nov 13, 2013 01:58 |
|
From the Unity docs: "Think of the sphere cast like a thick raycast". You can do a series of raycasts so your hit target isn't tiny but a spherecast is simpler. What you are describing is an "OverlapSphere" which casts out in a radius from a point of origin. I use overlapsphere for my target code (select the nearest enemy) as an example.
|
# ? Nov 13, 2013 02:28 |
|
FuzzySlippers posted:From the Unity docs: "Think of the sphere cast like a thick raycast". You can do a series of raycasts so your hit target isn't tiny but a spherecast is simpler.
|
# ? Nov 13, 2013 02:47 |
|
Lork posted:Yes, I read docs page, but that doesn't explain what it actually means. "Thick" in which dimensions? If it was thick in two dimensions it would be as I described, but that would be a circle, not a sphere. If the thickness was spherical then wouldn't it just be the same as a sphere collider, which would make no sense? Unless what it's actually doing is detecting anything within a sphere radiating out from the point at which a raycast hits, in which case it's just poorly explained. But given the change to an "extruded shape" model of reference, perhaps it's a spherecast rather than a circlecast because it touches an object along the ray that's less than a radius beyond the length? (ie. the collision shape might be a capsule rather than a cylinder.)
|
# ? Nov 13, 2013 02:52 |
|
Does anyone here do much sprite art? An old college friend of mine that lives out in the sticks has developed a pretty neat tool for making depth & normal maps for sprite drawings. He just started a kickstarter for it, but I reckon it would make a whole lot of peoples' animating and 2d game making a whole lot more awesome. Dynamic lighting and stuff for 2d drawings is kind of cool. http://www.kickstarter.com/projects/finnmorgan/sprite-lamp-dynamic-lighting-for-2d-art
|
# ? Nov 13, 2013 03:02 |
|
I was just shown that by a friend. Looks amazing!
|
# ? Nov 13, 2013 03:04 |
|
roomforthetuna posted:I'd call it a cylindercast myself, since otherwise a raycast would be called a pointcast. Well, that schools me, I guess. Thanks for explaining that. I still maintain that the name and documentation are confusing, though.
|
# ? Nov 13, 2013 03:08 |
|
SynthOrange posted:I was just shown that by a friend. Looks amazing! He's already more than halfway to his goal in under 2 hours, and someone straight up pledged $1000 to it as well. Seems like it might be a useful tool.
|
# ? Nov 13, 2013 03:10 |
|
Yeah, that looks awesome! Gonna send that around work and see what people think. I imagine if you're doing keyframe animation you'll have to do 3-6x the number of drawings, but if you can reuse the assets in many more situations throughout the game, it will probably pay off.
|
# ? Nov 13, 2013 04:44 |
|
Lork posted:I still maintain that the name and documentation are confusing, though. So really, since raycast is pretty standard and I've never heard of a spherecast before, they should be calling it a capsulecast.
|
# ? Nov 13, 2013 05:58 |
|
Cylindercast.
|
# ? Nov 13, 2013 05:59 |
|
Why don't they just call it by it's real name? A swept sphere test.
|
# ? Nov 13, 2013 06:02 |
|
Goffer posted:Does anyone here do much sprite art? An old college friend of mine that lives out in the sticks has developed a pretty neat tool for making depth & normal maps for sprite drawings. He just started a kickstarter for it, but I reckon it would make a whole lot of peoples' animating and 2d game making a whole lot more awesome. Dynamic lighting and stuff for 2d drawings is kind of cool. Yep totally backing this.
|
# ? Nov 13, 2013 06:05 |
|
xzzy posted:Cylindercast. Obsurveyor posted:Why don't they just call it by it's real name? A swept sphere test. Though honestly, sphere cast seemed pretty sufficient. Didn't seem that confusing. Biggest issue I have is there is still no box/rectangle cast. I just want a wide cubic/rectangular ray, the math's not hard / it'd be cheap, but no, they want me to use a crazy swept pill instead I guess. Goffer posted:http://www.kickstarter.com/projects/finnmorgan/sprite-lamp-dynamic-lighting-for-2d-art ... though it's also obnoxious. Right now, the idea's novel and cool, but by the time I finish Hot Tin Roof and get Next Game far enough along to show, lighted sprite tech is apparently going to be old hat. Shalinor fucked around with this message at 06:10 on Nov 13, 2013 |
# ? Nov 13, 2013 06:06 |
|
Shalinor posted:Though honestly, sphere cast seemed pretty sufficient. Didn't seem that confusing. Biggest issue I have is there is still no box/rectangle cast. I just want a wide cubic/rectangular ray, the math's not hard / it'd be cheap, but no, they want me to use a crazy swept pill instead I guess.
|
# ? Nov 13, 2013 06:30 |
|
roomforthetuna posted:Is there no "arbitrary object/collider, what does it overlap with?" function? That seems a bit daft. But I suppose if there was that then it would seem daft to have a special capsulecast function too, since capsule primitives are available! I believe the issue is that Unity's physics engine can't handle the collider's volumes changing at runtime.
|
# ? Nov 13, 2013 06:33 |
|
roomforthetuna posted:You're totally right about the name - if a spherecast encompasses a capsule then by the same rules a raycast would be a plane and a pointcast would be the proper name for a raycast. Dunno about the documentation though, "raycast with thickness" seemed pretty clear to me. Yeah, I've been trying to figure out if a spherecast is actually an elongated sphere, stretched along the length of the ray, or an actual capsule. I can live with the name if the documentation would just get specific. "Thick raycast" could mean a variety of things. "Capsule" pretty much means "capsule", so if that's what it is, then please use that word somewhere, Unity.
|
# ? Nov 13, 2013 11:14 |
|
I was going to say that thick raycasting is obviously beamcasting , but according to wikipedia that uses pyramids, it does link to conecasting which might be it. Either way I really appreciate this thread, I've learned a lot just by reading through it. Now I just need to set up a backup/source control so that the next time my computer blows I don't lose half the project. Bitbucket is the recommended option for single person ,non-open source right?
|
# ? Nov 13, 2013 13:24 |
|
Dirty posted:Yeah, I've been trying to figure out if a spherecast is actually an elongated sphere, stretched along the length of the ray, or an actual capsule. The simple test, I suppose, would be to make a very tiny object at 0,1,0, and one at -0.5,0,0, and then do a spherecast from 0,0,0 direction 1,0,0 radius 1 length anything and see which objects it hits. If it hits the first then it's not an elongated sphere, and if it hits the second then it's a capsule not a cylinder. Mind, the documentation does use the word capsule, but it says "Returns bool True when the capsule sweep intersects any collider, otherwise false." which is retarded because it drat well should not be a capsule sweep, a sphere sweep is a capsule, a capsule sweep is some weird-rear end shape. There actually is a capsulecast function, so they probably copy and pasted that bit of documentation from there and didn't fix it.
|
# ? Nov 13, 2013 15:29 |
|
Hel posted:I was going to say that thick raycasting is obviously beamcasting , but according to wikipedia that uses pyramids, it does link to conecasting which might be it. BitBucket is great. Git Extensions is also great.
|
# ? Nov 13, 2013 18:38 |
|
Bitbucket with SourceTree is about as easy as it's going to get.
|
# ? Nov 13, 2013 18:42 |
|
Yodzilla posted:Bitbucket with SourceTree is about as easy as it's going to git. Fixed.
|
# ? Nov 13, 2013 18:47 |
|
Atlassian should send you a check.
|
# ? Nov 13, 2013 18:52 |
|
Goffer posted:Does anyone here do much sprite art? An old college friend of mine that lives out in the sticks has developed a pretty neat tool for making depth & normal maps for sprite drawings. He just started a kickstarter for it, but I reckon it would make a whole lot of peoples' animating and 2d game making a whole lot more awesome. Dynamic lighting and stuff for 2d drawings is kind of cool. Aaaand pledged. This looks loving awesome.
|
# ? Nov 13, 2013 19:09 |
|
Goffer posted:Does anyone here do much sprite art? An old college friend of mine that lives out in the sticks has developed a pretty neat tool for making depth & normal maps for sprite drawings. He just started a kickstarter for it, but I reckon it would make a whole lot of peoples' animating and 2d game making a whole lot more awesome. Dynamic lighting and stuff for 2d drawings is kind of cool. I'm kind of surprised that something like this doesn't already exist.
|
# ? Nov 13, 2013 20:37 |
|
The plague doctor animation is pretty eye popping. Normal maps for 2D sprites seems so obvious, now that someone has pointed it out.
|
# ? Nov 13, 2013 20:47 |
|
People have been using normal maps on 2D sprites for a long time, but typically they are just built by hand or with a custom tool. This is just the first 'formalized' tool that I've seen, i.e. polished up and intended for other developers to use.
|
# ? Nov 13, 2013 20:50 |
I wasn't too thrilled then I saw the rock wall. Backing the crap out of this now. Guy seriously needs a haircut and shave though
|
|
# ? Nov 13, 2013 21:52 |
|
littlebirdy posted:I'm kind of surprised that something like this doesn't already exist. It kind of does, in that there is almost no difference between using this tool and hand-painting normal maps for sprites. From what I can tell, their tool basically just makes it a little more understandable, unless I'm missing something. You're still painting a greyscale image to represent lighting information from top, bottom, left and right, which is no different than hand-painting the R and G channels of a normal map. Basically, I don't really understand how this thing is different from a moderately-clever Photoshop action(or a mildly technical artist). EDIT: To be clear, I'm honestly not out to put this thing down. I'm just having trouble seeing the value and would genuinely like a reason to be as excited as everyone else is about it. Zizi fucked around with this message at 01:50 on Nov 14, 2013 |
# ? Nov 14, 2013 01:42 |
|
Zizi posted:It kind of does, in that there is almost no difference between using this tool and hand-painting normal maps for sprites. From what I can tell, their tool basically just makes it a little more understandable, unless I'm missing something. You're still painting a greyscale image to represent lighting information from top, bottom, left and right, which is no different than hand-painting the R and G channels of a normal map. Basically, I don't really understand how this thing is different from a moderately-clever Photoshop action(or a mildly technical artist). Confederate Express and Legend of Dungeon both use kind of similar approaches in their games, although the plan for this process is to make a reusable tool for general use in games (and I guess other applications that use dynamic lighting). I like to think this project has a different approach to the whole thing than using a photoshop tool. The process starts off with a diffuse image rather than a shaded image, so the artist doesn't initially have to spend time doing the highlights and shadows on the object. Most of the photoshop and image processing stuff I've seen uses the pre-existing shadows and stuff in the image to generate the normal maps. Also it's probably because it can run off rough hand sketches: Don't think I'd really want to spend the time painting the R and G channels of this.
|
# ? Nov 14, 2013 03:55 |
|
I read somewhere a while ago that if you wanted to make games you should just ... make games. Start simple and just finish one and then do the next. Well I feel like I pretty well "finished" my Asteroids clone and I gotta say it's a lot of fun to actually have made a game, no matter how simplistic it is. Also I kinda like JavaScript now. I mean I guess I could put in a score counter and sounds using the Web Audio API but I'm thinkin' I'll work on a Web Audio / Three.js game thing next. Gotta come up with an idea though.
|
# ? Nov 14, 2013 05:22 |
|
Hello, I'm looking for a CryEngine talent who would like to join a group to compete in the Star Citizen "Next Great Starship contest" https://robertsspaceindustries.com/contest/the-next-great-starship Basically make a startship for a pretty great game over a number of weeks and win cash, prizes and fame !! Total first place prize of $30,000. https://robertsspaceindustries.com/contest/the-next-great-starship We have concepts and a Maya Artist(I can PM his demo reel) but need someone who can work in CryEngine, please let me know if any of you are interested. Thank you Here is a video on the contest http://www.vimeo.com/76645112 (USER WAS PUT ON PROBATION FOR THIS POST)
|
# ? Nov 14, 2013 05:37 |
|
Tres Burritos posted:I read somewhere a while ago that if you wanted to make games you should just ... make games. Start simple and just finish one and then do the next. Well I feel like I pretty well "finished" my Asteroids clone and I gotta say it's a lot of fun to actually have made a game, no matter how simplistic it is. I got caught in a 'Game Over' alert loop until I told Chrome to stop allowing alerts from that page. That allowed me to keep flying around in a frozen asteroid field. Alerts are tacky anyway, especially in a "retro" setting.
|
# ? Nov 14, 2013 16:13 |
Anybody get a chance to mess around with Unity 2D yet? I have not, but I was curious on other peoples thoughts. I watched the overview video and it seemed pretty awesome.
|
|
# ? Nov 14, 2013 20:12 |
|
Don Mega posted:Anybody get a chance to mess around with Unity 2D yet? I have not, but I was curious on other peoples thoughts. I watched the overview video and it seemed pretty awesome. I noodled around with it a bit, but most of my project that could use it are already established. Happy to have some of the new stuff as a backend to 2D Toolkit's continued awesomeness, mostly, but if I didn't already have tk2D I'd probably be inclined to use it.
|
# ? Nov 14, 2013 22:46 |
|
YO MAMA HEAD posted:I got caught in a 'Game Over' alert loop until I told Chrome to stop allowing alerts from that page. That allowed me to keep flying around in a frozen asteroid field. Alerts are tacky anyway, especially in a "retro" setting. Just man. I did asteroids mostly because I'm too stupid to figure out anything else at the moment.
|
# ? Nov 14, 2013 23:46 |
|
Tres Burritos posted:Just man. I did asteroids mostly because I'm too stupid to figure out anything else at the moment. I hate menus so much.
|
# ? Nov 15, 2013 00:28 |
|
|
# ? Jun 13, 2024 04:59 |
|
roomforthetuna posted:For getting into it it's maybe a decent idea to take this attitude, but at some point you're going to have to engage with the horribleness that is menus and restarting and junk of that nature. It takes five times as much work as the actual game. On the other hand if you leave trying that until you're doing a big project it will be even more disheartening than it will be doing it for a simple game. Amen. AI and GUI are easily the least enjoyable categories of work I've done so far.
|
# ? Nov 15, 2013 00:33 |