omarvision
Full Stack Developer (>20 yrs) Microsoft C#, VB, C++ SQL Server, Oracle Game Development Unity, DirectX, OpenGL, Blender Hobby Kids Coding Instructor
Omarvision Kids CodingTampa, Florida
Pinned Repositories
animate-3d-models-with-mixamo
How to Animate a MagicaVoxel 3D Model using Mixamo. Import the model and animation data into Unity and play the character with joystick or keyboard input.
create-bones-on-transparent-2D-image
Animate 2D images in Unity with the 2d Animation package. Here I'll use Unity 2021.1 and the sprite editor to create bones on a picture of the pink panther. The sprite editor will also add geometry (mesh outline of the 2D image) and weight (effect of each bone on the nearby geometry). The geometry and the weight have automatic features. After the bones are added to the sprite asset, drag and drop the sprite into the scene. Add a 2D Animation, Sprite Skin component and click the button create bones, so the component can detect all the bones you added in the sprite editor. Then when you move the bones the sprite beneath it moves. You can now animate it.
how-todo-marching-cubes
Haven't made a video in a while. That's because this marching cubes algorithm took me awhile to unravel. Most of the work was in the 256 cube configurations and the isofaces it takes to build them. I figured them all out myself (even though there were probably daat available on internet somewhere). Oh well, learn the hard way, and I'll never forget. In this video I'll go over how the marching cube algorithm works, how to use it, how to figure out the cube configurations. You'll see it animated in action. There is a cube configurator scene that helps you see what each cube configuration looks like. the MarchingCube.cs file is reusable so you don't have to write it everytime you start a new game project.
inspector-dropdown-editorGUIlayout.popup-
How do you add a dropdown to the Unity Inspector window for your script? You could use enum public variable type. But you can also use an array like I do in this tutorial here. I use a string array and a List collection. These are helpful if you don;t know what the contents of your array will be.
load-external-mp3-with-script-from-anywhere
Imagine making an audio player in Unity. How do you load a file from anywhere on the harddrive in Unity? I found a way to load a WAV file from anywhere on the HardDrive using WWW, but then I couldn't load an Mp3 file. I didn't give up I found that I could use NAudio.dll library to convert an MP3 to WAV in memory and then use the WWW to load the MP3 file from an external location in Unity. Hopefully WWW (which is deprecated) sticks around a while longer... or is replaced with something better.
marching-cubes-in-a-game
So know that I know the marching cubes algorithm, how can I implement it in a game of some type. One way is like in a minecraftee type of way. Modify the terrain around me in real time during game play... So that's what I did here in this tutorial video.
marching-cubes-with-linear-interpolation
procedural-punch-to-target
HOw would you like to know how to animate a character to always punch toward any target in a scene? How to pick up any object they can reach? You dont want to use a canned animation because the scene placement maybe off a little. A solution is to mix the canned animation with a procedural one. Mic the canned animation with an Implementation of real-time inverse kinematics in Unity using the animation rigging package. YouTube
SelfDrivingCars
Use Neural Networks (MLAgents) to train cars to drive on track using barriers and no barriers
Softbody-Physics-Spring-Joint-
Turn a mesh mushy with softbody physics. How can I make softbody physics in Unity using the things unity has built in? I tried to make softbody using a rigged mesh and spring joints. Here is how it came out. YouTube
omarvision's Repositories
omarvision/SelfDrivingCars
Use Neural Networks (MLAgents) to train cars to drive on track using barriers and no barriers
omarvision/3WaysToMoveCar
3 ways to move cars in unity
omarvision/Animate-Inside-Unity
how to create an animation inside Unity (*.anim) and use it on a game object.
omarvision/crowd-simulator
make a crowd feeling using navmesh and navmeshagents
omarvision/Drive-To-Checkpoint-Artificial-Intelligence-MLAgents-
Train a neural network (MLAgent) in Unity for a Car to drive down a road to a checkpoint. Develop a simple artificial intelligence for a car to drive down a road to a checkpoint
omarvision/MakeRoad2Splines
Make a race track road out of two splines, on a terrain. the terrain will cut out for the road. There are gizmos and an inspector editor button to preview the mesh that will be made. and there is a car that you can drive.
omarvision/MLAgents16-Toolkit
version 16 of the MLAgents toolkit. Useable yo make Artificial Intelligence / Neural Network training and brains for Unity game objects
omarvision/multiple-cameras
How to display view from more than one camera in a Unity game scene (ie: split screen, minimap, TV, etc)
omarvision/slowly-rotate-toward-target-2
slowly rotate a gameobject to point toward another gameobject on all three axes or any subset of axes
omarvision/TextTwoWays
Do text in Unity using OnGUI or UIText. You can have screen text or 3d text in the scene
omarvision/3WaysToText
3 ways to do text in Unity.
omarvision/better-jump
Make Unity do a better character jump by landing the jump faster with a more solid feeling
omarvision/build-low-poly-terrain
make a low poly terrain, color it, and export it from Blender for use in Unity
omarvision/build-lower-low-poly-terrain
build a lower low poly terrain. after making terrain. use the decimate modifier collapse to further reduce the faces
omarvision/calculate-race-position
calculating race car position using checkpoints placed around track.
omarvision/CarEngineSounds
Drive a car around a race track and get good engine/car sounds to go with it.
omarvision/character-select-screen
make a character select screen where the options are read from the Resources folder and loaded at runtime into the scene. How to recall the picked character (player) for when the game level loads to use the user selected character to play with.
omarvision/drive-car-on-track
take a low poly race car and track made in Blender into Unity. Inside Unity make the car drive around the track. Have a camera follow the car around the track
omarvision/Input-2024-Gamepad
how to use the newer input system to read a gamepad in Unity
omarvision/make-a-racetrack-II
make a racetrack in blender using a road segment, array modifier, curve modifier. remove the outer barrier walls so in unity the camera can see thru the walls
omarvision/Make-Car-and-Track-in-Blender
In Blender make a car and make a track. Use the color palette method to texture the
omarvision/make-car-and-track-shortversion
make a low poly car and track with road and barrier separate in blender for later use in unity game
omarvision/Make-The-Race-Car-Easy
Make a nice little easy race car in Blender. Starting only from a cube to a low poly car model
omarvision/Making-Race-Tracks-Easy
Make 3 race tracks really easy in blender so that I can use them in some racing tutorials later.
omarvision/mlagent-drive-around-track
O.M.G> I finally got the AI Cars to drive around the track using a neural network brain that I trained using Unity & MLAgents!!!!! Im so excited I just had to share my break though with you all. Machine learning and artificial intelligence is such an exciting field
omarvision/PlayerControl-NewInputSyste-
How to use the new input system to read gamepad and keyboard at the same time
omarvision/Random-Point-on-a-NavMesh
How to get a random point that the gameobject can travel to on a navmesh with obstacles, etc.
omarvision/setup-mlagents-artificial-intelligence-python
MLAgents is a library so you can do Machine Learning (Artificial Intelligence) in Unity. MLAgents is written in python. Setting it up to run on your windows computer requires some steps. You run the Python MLAgents library while you're Unity project runs to train a neural network file for the gameobject you are trying to make machine learning for. The Python MLAgents package runs in a python environment and listens on a port to the unity game running. It also controls the unity game running to put it through training loops. Anyway this video just goes over setting up the MLAgent library on your computer
omarvision/Trained-Cars-Unknown-Track
After the break thru with training some AI Cars to drive around a simpler Oval track... I take that same neural network (brain) and put the cars on a new unknown more complex track to see how they do.
omarvision/Walking-Animation
Make a 3d Model, Rig it and get animations from Mixamo, Have character walk in unity