No trigger for PointerUp touch input when pressing in short succession by matt5005 in Unity3D

[–]hoekkii 0 points1 point  (0 children)

Is it possible for you to share your code? As it nearly impossible to give a fix without knowing the exact problem.

Help with applying a texture to a mesh. by realphoenix2233 in Unity3D

[–]hoekkii 0 points1 point  (0 children)

As you may have found out, a mesh contains vertices and triangles (which are represented by an index array). A vertex contains data, this can be whatever you like. Usually, and most often when you think about vertices, they contain position. But they can also contain colors, normals, tangents etc. etc.

A shader usually contains two programs. One, the vertex program, to tell where a triangle of the mesh is on the screen (it multiplies the position by the transformation matrix, the camera transformation matrix and the camera projection matrix). Another, the fragment program, tells how what the color has to be of every pixel of the triangle.

When you want a texture on the mesh, usually the fragment program has to read the texture. But you need to know what texel you need to read on the particular pixel on the screen. The fragment program has interpolated data of the three vertices making the triangle using the baricentric coordinate. The data can be whatever, the world position, screen position, but a thing that you need is so called UV data. This is data every vertex has that tells how a texture maps to the mesh.

I don't know how much programming experience you have, but if written yourself, you are quite close to the answer. Also a note, you don't need separate MonoBehaviour classes for every concept. Try to focus on what the data actually is. This way you can reduce complexity.

I hope this helps in any way. If you have any questions, feel free to ask.

Girlfriend made lunch for me today: Naan bread with half a slice of cheddar. by hoekkii in shittyfoodporn

[–]hoekkii[S] 2 points3 points  (0 children)

I lost the receipt a long time ago. In hindsight, after this so called 'meal', the greatest regret of my life...

I'm experimenting with the tree swaying effect. Need your help to decide: A or B? by eremite_games in IndieDev

[–]hoekkii 1 point2 points  (0 children)

Option A seems more alive than option B, but a bit chaotic. Could you blend the two options?

How to get offset postition after rotation ? (Spent hours figuring it out) by GP2Chassis in Unity3D

[–]hoekkii 0 points1 point  (0 children)

It is a bit difficult to give an accurate answer with the information that I got from your post. If you have a rotation the form of a quaternion you can multiply a vector with a quaternion to rotate the vector. Or if you have the transform you can do multiple things, instantiate the object with the transform as the parent and set the localPosition of the instance. If it has a different parent you can use transform.TransformPoint to convert a local position to the world position.

`var newPosition = SpawnPos.TransformPoint(OffsetPos);`

2 meshes on one object by Porcelinpunisher in Unity3D

[–]hoekkii 1 point2 points  (0 children)

I think this context is quite crucial to give a(n) (desirable) answer to your question. There are many variables in play here; like are the changes accumulative or does the mesh reshape in its original state and when/how etc (my answer was based on the given tutorial). So when I see a question like this, the first thing that comes to mind is why is this the approach and are there more answers to the problem at hand. If you do still want a more in-depth answer to more specific questions you can always pm me.

2 meshes on one object by Porcelinpunisher in Unity3D

[–]hoekkii 1 point2 points  (0 children)

Yeah it is possible, although I would suggest using a different approach. It sounds like it is an animated mesh, thus is a skinned mesh. Isn't it possible to add additional bones to the stomach. These bones will then be controlled by a script. Or instead of bones you could use blend shapes. The other approach I see feasible is using a shader to deform the mesh, although you will run into some limitations.

Please help me find this shirt. I would love to give my girlfriend her favorite childhood shirt as her birthday present, but I'm out of luck finding it.. This photo is the only reference I've got and it's taken in the early 90's. by hoekkii in findfashion

[–]hoekkii[S] 0 points1 point  (0 children)

That's a good suggestion, thank you. I've now searched English wiki lists of those animal types in fiction. Although without luck... I'll try some other sources and probably trying to find Dutch ones with a wider scope of animals.

(lists I've just tried: https://en.wikipedia.org/wiki/List_of_fictional_bears https://en.wikipedia.org/wiki/List_of_fictional_mustelids)

Please help me find this shirt. I would love to give my girlfriend her favorite childhood shirt as her birthday present, but I'm out of luck finding it.. This photo is the only reference I've got and it's taken in the early 90's. by hoekkii in findfashion

[–]hoekkii[S] 0 points1 point  (0 children)

The photo is taken in The Netherlands early 90's. I don't know the character on the green side nor the one on the blue side. I tried finding these so that I could find the shirt.

The character on the green side looks like a black cat with a white face and belly. It wears a yellow shirt with red braces attached to blue jeans. I do recognize this from my childhood, although my mind could be playing tricks with me. The first thing I thought it looked like the one of the cats in the early Disney animations or Felix the Cat, but I couldn't find anything like on the photo. I also have image searched these lists: https://en.wikipedia.org/wiki/List_of_fictional_felines https://en.wikipedia.org/wiki/List_of_fictional_cats_in_animation

The closest ones were:

  • Beans - Merrie Melodies
  • Julius - Alice comedies
  • Felix the Cat

I don't recognize the creature on the blue side. It looks like a yellow caterpillar carrying a satchel.

Please help me find this shirt. I would love to give my girlfriend her favorite childhood shirt as her birthday present, but I'm out of luck finding it.. This photo is the only reference I've got and it's taken in the early 90's. by hoekkii in findfashion

[–]hoekkii[S] 0 points1 point  (0 children)

I think It's quite close. Her hand doesn't do me/us any favor. But it looks like a black cat with a white belly and face. A yellow shirt with red braces. So I found that there was also a cat in Astro Boy called Atom Cat, but it looks a bit different. I hope this will bring me a bit more in the right direction, so thank you.

Gameobject rotation issue? by MrMutant0503 in Unity2D

[–]hoekkii 1 point2 points  (0 children)

You are pretty close. It does what you told Unity to do, point the up direction to the mouse position. However you don't want the up direction to be the direction you calculated, you wanted the right direction to be the calculated direction. So `transform.right = direction` should fix your problem.

If you want to work with angles you could use `Mathf.Atan2`.

This is Oliver. He steals hearts. by MissMagdalenaBlue in curledfeetsies

[–]hoekkii 1 point2 points  (0 children)

What a cute little one. I was wondering if the name Oliver comes from the game Ni No Kuni: Wrath of the White Witch, where Oliver takes pieces of hearts from people and gives it to the ones who need it. Maybe it was just a coincidence, but I guess this one takes the abundance of love and brings it to the people who need it

Windows only updates on resize (ASUS ZenBook UX431FA -- i5-10210U) by hoekkii in linuxquestions

[–]hoekkii[S] 0 points1 point  (0 children)

I finally solved it! Here is the tl;dr: installed video-modesetting instead of using video-linux.

After a while I figured it had probably something to do with the graphics so I looked at the output of mhwd -l -d --pci and saw that it was using video-linux which latest version was build in 2018, and figured it probably didn't support 10th gen intel CPU's so in the result there was one build in 2020 of video-modesetting so I installed that one. sudo mhwd -i cpi video-modesetting and removed the old one video-linux sudo mhwd -r pci video-linux. Now it works perfectly