i have been searching for long in order to find how i can place a sphere/cube around my playfield so ill have an effect similar to sky. I have seen SkySpheres/Boxes but couldnt implement them . Im looking for a rather simple solution since my play field is really small and i just need something to replace the Clear(Color.Black) .I dont care about collision i just need it to be there with a texture on . Thanks !
You should take a look at Riemers XNA Tutorial
HERE is the post on the skybox.
Related
I was wondering what best approach to take when trying to implement pathfinding but without using a grid.
In this example, the player is a able to place road tiles on a grid, but I only want to pathfind the placed roads (no need to compute for the whole map).
I've tried a couple things but with no luck.
Any help would be appreciated.
Thanks in advance.
I think you are looking for A* algorithm. There are also other ways to do this, but most of them are based on graphs, including Unity NavMesh.
There is amazing site with interactive examples and implementation guide, for sure it will be helpful, whether you want to implement this yourself or just understand how it works:
https://www.redblobgames.com/pathfinding/a-star/introduction.html
I'm trying to make a rubber band in Unity and I don't get out. I found this example but it's done in Actionscript Flash https://www.deviantart.com/willmh93/art/Ball-Elastic-142211333..... and I can't even convert the code to javaScript or C#.
I managed to do something similar, but this one uses line renderer, and it's not so real.
Sling Shot img
My simulation uses the Slingshot mechanism, but it doesn't benefit me. I want to have this rubber band and act on a draggable object.
I don't need you to write me code, but give me some ideas or some sources from which I can orient myself, what and how to use it to get the same result.Thanks a lot.
I believe you are looking for Spring Joint:
https://docs.unity3d.com/Manual/class-SpringJoint.html
It allows you to attach 2 objects with springiness. I'm sure you can fiddle with the values to get a more 'rubber-band' feel.
I am trying to figure out a way to digitally map an image of a stained glass window. Between and around every piece of glass is a line of lead solder. What I'm thinking would be the best way to go about this would be to map the image based on the range of HSL or HSI values of the soldering material, such that each piece of glass would be its own zone, with its own information and click function.
I'm trying to make this a desktop application using C#, but could probably use html/javascript if that would be easier. I have been searching for some time to try and figure out a good way to accomplish this, but I'm having a hard time figuring it out.
Does anyone have any pointers on how I might go about doing this? I'm sorry if this question seems vague; if further clarification is needed, please comment on it and I will try to be clearer if necessary.
I don't have enough reputation to post a picture, but look at these for an idea:
http://rootsofknowledge.tc.uvu.edu/Gallery
I have had a little look, but don't want to do too much in case I am barking up the wrong tree!
I like to use ImageMagick, available for free with C/C++, Perl, PHP bindings and on the command line in most Linux distros. It is here.
I started with this image:
and tried a little blurring to make it less sensitive to tonal changes in the glass, followed by a Canny Edge detector and got this:
The command I used was this:
convert glass.jpg -blur 0x2 -canny 0x1+5%+10% edges.jpg
Obviously there is loads more to do, but it is maybe a start... and maybe others will add their expertise now we have a starting point....
Maybe I'm dumb but i tried reading the answers you guys had here, but I couldn't figure out how to do it. So I got a game (a Stargate shooter) where you drive a space ship and you gotta destroy all of your opponents. The problem I'm having is I don't really know how to create a map and how to move my camera around it according to the ship's position. Can anyone help?
You have probably resolved this yourself already, but if not then I highly recommend going over to David Amador's page on the subject. As an added bonus, David is active on the site and replies directly to your questions (within 10 minutes usually).
I am searching for a C# library to look where the sound of my output (speakers) is coming from. I think its called a spectrum analyzer? Does anybody know a good library?
thnx!
What usually you can do is have 3 or four mics facing each direction and then analyse the higher decibles or loudness and detect (resolve) direction
I think this article at CodeProject can help you getting started.
it has codes for processing wav files.
3D sounds like something common in gaming.
http://create.msdn.com/en-US/education/catalog/sample/3d_audio