3d-modelling

resizing 3D matrix (image) in MATLAB

社会主义新天地 提交于 2019-12-17 06:09:38
问题 I have a 3D matrix (MxNxK) and want to resize it to (M'xN'xK') (like imresize in matlab). I am using image pyramid, but its result is not very accurate and need a better one. Any solution? 回答1: You could use interp3 (since you want to interpolate 3D data): im=rand(2,3,4); %% input image ny=3;nx=3;nz=5; %% desired output dimensions [y x z]=... ndgrid(linspace(1,size(im,1),ny),... linspace(1,size(im,2),nx),... linspace(1,size(im,3),nz)); imOut=interp3(im,x,y,z); 回答2: Here is the resize function

How to make a dynamic model in unity 3D?

人盡茶涼 提交于 2019-12-12 00:35:52
问题 I have a sample code that where it's creating dynamic walls to a mouse clicks. using UnityEngine; using System.Collections; public class CreateWalls : MonoBehaviour { bool creating; public GameObject start; public GameObject end; public GameObject wallPrehab; GameObject wall; // Use this for initialization void Start () { } // Update is called once per frame void Update () { getinput(); } /* *this is the method for getting mouse click inputs */ void getinput(){ if (Input.GetMouseButtonDown (0

Determing the direction of face normals consistently?

丶灬走出姿态 提交于 2019-12-11 03:42:29
问题 I'm a newbie to computer graphics so I apologize if some of my language is inexact or the question misses something basic. Is it possible to calculate face normals correctly, given a list of vertices, and a list of faces like this: v1: x_1, y_1, z_1 v2: x_2, y_2, z_2 ... v_n: x_n, y_n, z_n f1: v1,v2,v3 f2: v4,v2,v5 ... f_m: v_j, v_k, v_l Each x_i, y_i , z_i specifies the vertices position in 3d space (but isn't neccesarily a vector) Each f_i contains the indices of the three vertices

UNITY-Changing ONLY certain part of 3D model's color

时光毁灭记忆、已成空白 提交于 2019-12-10 15:15:21
问题 I'm really new with unity3D and I would like to ask a question I have a 3D human model ( a default unity model) which has a hierarchical bone structure. What I want to achieve here is, when I press certain trigger, I want to color one of its limb with different color (just one of its limb). This is the illustration of what I want to achieve I'm really clueless about this, because I've just started learning Unity for about 3 months ago, so I really need your help, this is the property of my

Modeling hand movement as a 3D curve in Matlab/Java

独自空忆成欢 提交于 2019-12-08 18:01:05
问题 I just need some directions regarding a problem I have, where to look, etc.. I am using a movement tracking glove for one of my projects, which returns an X, Y and Z values for each finger and for the palm. What I would like to do is to first create a representation of each finger movements based on these coordinates, , and then attach each of them to the movement of the palm, to have a representation of the hand. This second step will be easy once I manage the first one, but... I don't

How to import a 3D model in WPF using Helix Toolkit?

限于喜欢 提交于 2019-12-06 21:08:26
问题 I am trying to import a 3D model using Helix Toolkit.i can't figure out how to do it. Is there any online guide about importing a 3D model using this Toolkit or if there is another easier way to import a 3D model except Helix. Regards This is my Code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System

Is there a way to add an outline in scene kit?

一笑奈何 提交于 2019-12-05 01:10:24
问题 I've been making a game in scene kit, but the edges of objects are difficult to see, making some of the games details impossible to see. Is there a way to make a black outline around all the game objects? 回答1: you could use an SCNTechnique as mentioned in another answer (you can have a look at this article about cel shading, which has an edge-detection pass) but full-frame post-processes are quite expensive. On OS X you can also leverage geometry shaders (see this article). But it's not

Transferring rig weights from one mesh to another in blender 2.76

淺唱寂寞╮ 提交于 2019-12-04 14:14:40
I've recently started using blender in order to create my own models for games and such. I have created a model, rigged it, created clothes separately and now I want to add those clothes to my model so that it moves with the rig without the skin poking through. So there are many solutions that use the weight transfer tool but I can't seem to get this working with blender 2.76. I parent the rig to the clothes with empty weight groups under the deform option. I then, selecting the mesh and then the piece of clothing, go to weight paint mode and choose the 'transfer weights' option under the

how can i have the full control on my 3D human model?

佐手、 提交于 2019-12-01 14:58:02
I'm working on a project that i use a 3D human model made by makehuman and i want to interacting with it ( changing some feature like: height, width, leg long, etc..) i.e. full control. so i want to ask how can i do this in order to make some changes on the model features and then export it automatically(with code not using the tool) ??? All that can be done by Python scripting 来源: https://stackoverflow.com/questions/5570727/how-can-i-have-the-full-control-on-my-3d-human-model

how can i have the full control on my 3D human model?

眉间皱痕 提交于 2019-12-01 12:14:57
问题 I'm working on a project that i use a 3D human model made by makehuman and i want to interacting with it ( changing some feature like: height, width, leg long, etc..) i.e. full control. so i want to ask how can i do this in order to make some changes on the model features and then export it automatically(with code not using the tool) ??? 回答1: All that can be done by Python scripting 来源: https://stackoverflow.com/questions/5570727/how-can-i-have-the-full-control-on-my-3d-human-model