x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to lock camera on 3D model ( "inspect" )

I try to make game inspired by "Gone home" I'm newbie so I don't know much about this. there is a any way to "inspect" a 3D object? I mean Lock camera on 3D model.

Product Version: UE 4.20
Tags:
more ▼

asked Aug 23 '18 at 01:38 PM in Blueprint Scripting

avatar image

Virtyjab
7 3 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Not enough details to advise you correctly. There's around a dozen ways to do it.

The most basic one is to move the camera to the object when you enter the inspect mode.

more ▼

answered Aug 23 '18 at 03:35 PM

avatar image

Everynone
15.3k 77 26 64

avatar image Virtyjab Aug 23 '18 at 03:41 PM

What to tell more? For example, when you are close to object that you want inspect press assigned button, then will show model of this item that you can rotate. This is possible on blueprints?

avatar image Everynone Aug 23 '18 at 03:49 PM

By 'show model' do you mean zoom in on the model in the world or would you like the UI to come up and show the object in a separate window.

The first method would be simple to set up and require you to move the camera to the object. The second one requires a render target and quite a bit of moderately complex setup.


What to tell more?

The more details you provide, the easier it is to nudge you in the right direction. A brief description always helps. A marked second in the YT video demonstrating how you would like it to work wonder. My personal favourite will always be a crude paint drawing, though. But now I'm asking for too much, I know. ;)

avatar image Virtyjab Aug 23 '18 at 03:56 PM

I mean some kind of pop up with model, not zoom on object in world.

avatar image Virtyjab Aug 23 '18 at 04:03 PM

I don't know I import this right but:alt text

I want some like this: "inspected" object shows up as 3D model that can be rotated, like on picture. Something more you need?

bez-tytułu.png (222.1 kB)
avatar image Everynone Aug 23 '18 at 04:07 PM

Makes sense.

For something like above, it will be enough to move the object (or spawn a copy) and place it in front of the camera. Have you tried that?

avatar image Virtyjab Aug 23 '18 at 04:10 PM

Umm, problem is this im new so i don't know what some nodes do, well... I have some blueprints but it is a simple basic. I don't know how to make a copy or place it at front of camera...

avatar image Everynone Aug 23 '18 at 04:14 PM

Is it going to be 1st or 3rd person game? Or top down view?

avatar image Virtyjab Aug 23 '18 at 04:15 PM

1st person game.

avatar image Everynone Aug 23 '18 at 04:17 PM

How do you pick up the item to inspect?

  • by looking at it and pressing the inspect button?

  • or you can click whatever you can see on the screen?

avatar image Virtyjab Aug 23 '18 at 04:19 PM

first one: look at it and click assigned button.

avatar image Everynone Aug 23 '18 at 04:21 PM

The item that you're inspecting stays where it was or you want to have a copy in front of you?

Are you using the 1st person template for this? Have you created some object already? Are they in the level?

avatar image Virtyjab Aug 23 '18 at 04:25 PM

The copy of item on front of camera. I using blank for now, but it takes me up to hour to copy this to 1st person template. some object are created in level but don't have any interactive actions for now.

avatar image Everynone Aug 23 '18 at 04:31 PM

The first thing you want to set up is line tracing. The character will shoot an imaginary beam in the looking direction, when this beam hits something, it returns a resulting struct - a data type with plenty of information about the stuff you've hit, including the reference to the object.

See if you can get something like that going first of all: https://www.youtube.com/watch?v=6ZFnPliFSX0&ab_channel=MathewWadstein

I strongly suggest you use the 1st person template for this as certain things, like movement are already set up.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question