Adding Texture to 3D Image
Hi, I'm trying to add this texture to the 3D object. The image and vi are saved in the same folder. Not sure why it is not working. Please see attached.
Attachments:
texture.vi 13 KB
mac.jpg 165 KB
So just checking, but did you follow these steps?
http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/3d_apply_texture/
TimC
National Instruments
Applications Engineer
Similar Messages
-
Revision: 13851
Revision: 13851
Author: [email protected]
Date: 2010-01-28 04:18:13 -0800 (Thu, 28 Jan 2010)
Log Message:
OSMFPlayer: adding a nicer sample image.
Modified Paths:
osmf/trunk/apps/samples/framework/OSMFPlayer/html-template/index.template.html
Added Paths:
osmf/trunk/apps/samples/framework/OSMFPlayer/html-template/images/vegetation.jpgHi,
You are the first person I have read so far on this forum who does not use Flex or Flash builder. I will check out FlashDevelop. It is good information to know. Thanks a lot!
-Wei Zhang
Senior Computer Scientist
Adobe Systems, Inc.
[email protected] -
i am using JFame
on JFrame i hav added JTabbedpane....
on one of the tab i hav added image on whole background....
on that tab i hav added JTable....
but when i add JTable on that tab .....instead of adding table on that image...it add image on background with no image
that no color part shoud be covered with part of image added on a tab
and also i want to position (x,y) of JTable on tab.....
so i hav used gridLayout so that it looks better....but that not i want.....
here is the code.... check search tab
//project.java
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
class tdsgui{
JFrame f,pass;
JTabbedPane jtp = new JTabbedPane();
JApplet obj=new JApplet();
JMenuBar mb=new JMenuBar();
public tdsgui(){
f=new JFrame("TELEPHONE DIRECTORY SYSTEM");
JMenu m1=new JMenu("File");
JMenu m2=new JMenu("About");
JMenu m3=new JMenu("Help");
mb.add(m1);
mb.add(m2);
mb.add(m3);
JMenuItem mi1=new JMenuItem("Save");
JMenuItem mi2=new JMenuItem("Exit");
JMenuItem mi3=new JMenuItem("save as");
mi3.setVisible(true);
m1.add(mi1);
m1.add(mi3);
m1.add(mi2);
public void launch(){
jtp.addTab(" REGISTRATION ",new registerpanel());
jtp.addTab(" MODIFY ",new updatepanel());
jtp.addTab(" SEARCH ", new searchpanel());
f.add(mb);
f.setJMenuBar(mb);
f.add(jtp);
f.setSize(500,600);
f.setVisible(true);
public class project{
public static void main(String args[]){
tdsgui next=new tdsgui();
next.launch();
class registerpanel extends JPanel{
public registerpanel(){
class updatepanel extends JPanel{
public updatepanel(){
class searchpanel extends JPanel{
public searchpanel(){
Icon icon = new ImageIcon("Sunset.jpg");
JLabel label = new JLabel(icon);
add(label);
this.setLayout(new GridLayout(2,0));
final String[] colHeads = { "Name", "Phone", "Fax" };
final String[][] data = {
{ "Gail", "4567", "8675" },
{ "Ken", "7566", "5555" },
{ "Viviane", "5634", "5887" },
{ "Melanie", "7345", "9222" },
{ "Anne", "1237", "3333" },
{ "John", "5656", "3144" }
// Create the table
JTable table = new JTable(data, colHeads);
JTableHeader header = table.getTableHeader();
table.setRowHeight(20);
TableColumn column = table.getColumnModel().getColumn(0);
table.setCellSelectionEnabled(true);
table.getTableHeader().setPreferredSize(new Dimension(0,30));
table.setFont(new Font("Dialog", Font.BOLD, 15));
table.setBackground(Color.green);
header.setFont(new Font("Courier",Font.BOLD,25));
header.setBackground(Color.yellow);
//label.add(table,BorderLayout.CENTER);
// Add table to a scroll pane
int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
JScrollPane jsp = new JScrollPane(table, v, h);
// Add scroll pane to the content pane
this.add(jsp, BorderLayout.SOUTH);
add image i ur system....make changes on searchpanel class
thanks in advance...on one of the tab i hav added image on whole background....no you haven't - you've added a JLabel to a GridLayout JPanel
I have no idea what you're really trying to do, but here's a tab with image background and transparent table (except for the header)
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
class tdsgui{
JFrame f;
JTabbedPane jtp = new JTabbedPane();
public tdsgui(){
f=new JFrame("TELEPHONE DIRECTORY SYSTEM");
public void launch(){
jtp.addTab(" REGISTRATION ",new registerpanel());
jtp.addTab(" MODIFY ",new updatepanel());
jtp.addTab(" SEARCH ", new searchpanel());
f.add(jtp);
f.setSize(500,600);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
class project{
public static void main(String args[]){
tdsgui next=new tdsgui();
next.launch();
class registerpanel extends JPanel{
public registerpanel(){
class updatepanel extends JPanel{
public updatepanel(){
class searchpanel extends JPanel{
Image img;
public searchpanel(){
try{img = javax.imageio.ImageIO.read(new java.net.URL(getClass().getResource("Test.gif"), "Test.gif"));}
catch(Exception e){}//do nothing - handled in paintComponent
this.setLayout(new GridLayout(2,0));
final String[] colHeads = { "Name", "Phone", "Fax" };
final String[][] data = {
{ "Gail", "4567", "8675" },
{ "Ken", "7566", "5555" },
{ "Viviane", "5634", "5887" },
{ "Melanie", "7345", "9222" },
{ "Anne", "1237", "3333" },
{ "John", "5656", "3144" }
JTable table = new JTable(data, colHeads);
table.setOpaque(false);
table.setBackground(new Color(0,0,0,0));
JScrollPane jsp = new JScrollPane(table);
jsp.setOpaque(false);
jsp.getViewport().setOpaque(false);
this.add(jsp);
public void paintComponent(Graphics g){
super.paintComponent(g);
if(img != null) g.drawImage(img,0,0,this.getWidth(), this.getHeight(),this);
} -
i am using JFame
on JFrame i hav added JTabbedpane....
on one of the tab i hav added image on whole background....
on that tab i hav added JTable....
but when i add JTable on that tab .....instead of adding table on that image...it add image on background with no image
that no color part shoud be covered with part of image added on a tab
and also i want to position (x,y) of JTable on tab.....
so i hav used gridLayout so that it looks better....but that not i want.....
here is the code.... check search tab
//project.java
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
class tdsgui{
JFrame f,pass;
JTabbedPane jtp = new JTabbedPane();
JApplet obj=new JApplet();
JMenuBar mb=new JMenuBar();
public tdsgui(){
f=new JFrame("TELEPHONE DIRECTORY SYSTEM");
JMenu m1=new JMenu("File");
JMenu m2=new JMenu("About");
JMenu m3=new JMenu("Help");
mb.add(m1);
mb.add(m2);
mb.add(m3);
JMenuItem mi1=new JMenuItem("Save");
JMenuItem mi2=new JMenuItem("Exit");
JMenuItem mi3=new JMenuItem("save as");
mi3.setVisible(true);
m1.add(mi1);
m1.add(mi3);
m1.add(mi2);
public void launch(){
jtp.addTab(" REGISTRATION ",new registerpanel());
jtp.addTab(" MODIFY ",new updatepanel());
jtp.addTab(" SEARCH ", new searchpanel());
f.add(mb);
f.setJMenuBar(mb);
f.add(jtp);
f.setSize(500,600);
f.setVisible(true);
public class project{
public static void main(String args[]){
tdsgui next=new tdsgui();
next.launch();
class registerpanel extends JPanel{
public registerpanel(){
class updatepanel extends JPanel{
public updatepanel(){
class searchpanel extends JPanel{
public searchpanel(){
Icon icon = new ImageIcon("Sunset.jpg");
JLabel label = new JLabel(icon);
add(label);
this.setLayout(new GridLayout(2,0));
final String[] colHeads = { "Name", "Phone", "Fax" };
final String[][] data = {
{ "Gail", "4567", "8675" },
{ "Ken", "7566", "5555" },
{ "Viviane", "5634", "5887" },
{ "Melanie", "7345", "9222" },
{ "Anne", "1237", "3333" },
{ "John", "5656", "3144" }
// Create the table
JTable table = new JTable(data, colHeads);
JTableHeader header = table.getTableHeader();
table.setRowHeight(20);
TableColumn column = table.getColumnModel().getColumn(0);
table.setCellSelectionEnabled(true);
table.getTableHeader().setPreferredSize(new Dimension(0,30));
table.setFont(new Font("Dialog", Font.BOLD, 15));
table.setBackground(Color.green);
header.setFont(new Font("Courier",Font.BOLD,25));
header.setBackground(Color.yellow);
//label.add(table,BorderLayout.CENTER);
// Add table to a scroll pane
int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
JScrollPane jsp = new JScrollPane(table, v, h);
// Add scroll pane to the content pane
this.add(jsp, BorderLayout.SOUTH);
add image i ur system....make changes on searchpanel class
thanks in advance...as was mentioned in your previous post, please use code tags when posting code here. Your current code is unformatted making it difficult to read. Also, when doing this, make sure that the pasted code has proper indentation before you use the code tags.
To do this, you will need to paste already formatted code into the forum, highlight this code, and then press the "code" button at the top of the forum Message editor prior to posting the message. You may want to click on the Preview tab to make sure that your code is formatted correctly. Another way is to place the tag [code] at the top of your block of code and the tag [/code] at the bottom, like so:
[code]
// your code block goes here.
// note the differences between the tag at the top vs the bottom.
[/code] -
Are the texture presets and images available in Adobe Premiere Pro free for commercial use?
Are the texture presets and images available in Adobe Premiere Pro free for commercial use (in this case, an image of a film reel is being used on a book cover)?
What the other users have said is correct. Premiere captures through FireWire or through SDI/HDMI via a 3rd party solution.
For your situation I would say the best bet is to connect you camera to your computer via USB or use a card reader and copy the entire directory to your hard drive and ingest into Premiere via Media Browser.
If you Google 'how to make stop motion in premiere pro' there are tons of great tutorials.
Best,
Peter Garaway
Adobe
Premiere Pro -
Use bitmap for texturing a vectorial image
How can i use a bitmap tile for texturing a vectorial image ?
Select-bitmap> Modify> Bitmap> Trace Bitmap
detailed settings make flash crash so be careful. This converts bitmap to vector if thats what you were looking for. -
How to fill a JPanel with a texture from a image.
Hello,
I have a xxx.jpg file. I'd like to use this image to set the background texture of a JPanel.
Can someone give me a piece of code to do that.
Many thanks in advance
GegeSince I haven't had no response, I have investigated more and finally solved my problem. Maybe it may help other people to have the answer.
Here is the piece of code which works fine.
import java.awt.*;
import javax.swing.*;
import java.awt.image.*;
import javax.imageio.*;
public class TestTexture extends JPanel
java.io.File filetexture = new java.io.File("mytexture.jpg");
public void paintComponent(Graphics g)
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g;
if (g2==null)
System.out.println("error");
return;
try
BufferedImage mImage = ImageIO.read(filetexture);
java.awt.geom.Rectangle2D tr = new java.awt.geom.Rectangle2D.Double(0, 0, mImage.getWidth(), mImage.getHeight());
TexturePaint tp = new TexturePaint(mImage, tr);
g2.setPaint(tp);
java.awt.geom.Rectangle2D r = (java.awt.geom.Rectangle2D)this.getBounds();
g2.fill(r);
catch (java.io.IOException ex) {}
} -
Hi
I would like to add Alt text to a number of images on my site.
I have been sucessful in achieving this by selecting either the image on the page or in the asset panel, right clicking and then going to Edit Image Properties.
However I have a number of pages which contain Image compositions initially created in Ilustrator then saved as flat jpeg or png images inserted using Fill into a Blank Composition Wigit. The images all have triggers on top.
All of this works well
However , I seem unable in any way, to by right clicking on the images either on the page in Design mode or by highlighting the file in the Asset panel to bring up the Edit Image Properties dialogue box for the images (as part of the wigit composition).
I get a dialogue box by right clicking but one that contains Paste /Select Same /Arrange /Lock etc
Is it not possible to Add Alt Text to such combined images in a wigit , Should anyAlt Text be added earlier in the Design , Fill or construction stage
Any pionters or help would be very welcome
Thank YouHi
I didn't get any replies to my post, but think I may have been able to resolve my own question.
I had been using the Fill with Image option to accurately place the images in the Wigit. This process as I mentioned does not seem to allow one to access the Edit Image Properties dialoge properties window by right clicking the image.
However when I deleted the image as a Fill and use the Place feature to insert the combined image with the same X-Y co-ordinates (and did a liltte bit of work to get the Wigit triggers to the front) right clicking now seems to allow access the Edit Image Properties
Success - I think !
Thanks -
Need help with adding formatted text and images to Crystal Report?
Here's my scenario:
I have a customer statement that's generated as a crystal report and that has a placeholder for advertisement. The advertisement is mixture of formatted text and images. Until now we only had one advertisement that was always used on the report. The new requirement is that we would have a pool of hundreds of advertisements and would need to display one specific advertisement on the customer statement based on various marketing criteria. They key is that the advertisement content will be determined programmatically and cannot be hardcoded into the report. I'm using Crystal2008 with .net SDK.
Here are the solutions I thought of, but I'm still rather lost and would appreciate your help/opinion.
1) Pass HTML or RTF to the report
Not really sure if this is possible and how to get it done. Also how would I pass in images? Would display formatting be reliable when exporting to PDF?
2) Create each add as a subreport and append it programatically
I actually have this working, but I only know how to append a new section to the end of the report and then load the subreport to the section. I have no other controll of the placement. Is there a way to dynamically load a subreport to a predefined section in the main report? How about adding a dummy subreport in the main report as a placeholder and then replacing it with a different subreport? How could I do this?
3) Pass an Image to the report
I would create each advertisement as an image and then would somehow add the image to the report. How would I load the image and control the placement? Could I somehow define a placeholder for the image in the main report-maybe a dummy image to be replaced?
Thank you.Hello Pavel,
I would got the third way.
You can use dynamic images in your report.
Just by changing the URL to the image the image can be changed.
Please see the [Crystal Manual|http://help.sap.com/businessobject/product_guides/cr2008/en/xir3_cr_usergde_en.pdf] and search for images.
or directly here
[Setting a Dynamic Graphic Location Path on an Image Object|https://boc.sdn.sap.com/node/506]
[Dynamic image and HTTP://|https://boc.sdn.sap.com/node/3646]
[codesample for .NET|https://boc.sdn.sap.com/node/6000]
Please also use
[Crystal Reports 2008 SDK Documentation and Sample Code|https://boc.sdn.sap.com/developer/library/CR2008SDK]
[Crystal Reports 2008 .NET SDK Tutorial Samples|https://boc.sdn.sap.com/node/6203]
Hope this helps
Falk -
Adding multiple slides with images from iPhoto
OK you use to be able to simply drag and drop 25 images in the right column and it creates a slide for each image, I am in v6.3 and it is not allowing me to do that anymore. How you insert multiple images and each on their own slide, I have 600 images to add and clicking insert slide and adding image is not a good way to do this.
Your Mac information is confusing;
Mac OS 10.5.2 is an outdated version of Leopard
There is no Keynote version 6.3
The latest version of Mac os X is 10.10.3
The latest version of Keynote is 6.5.3
All versions of Keynote create slides from images by drag and drop.
If you are sure this does not work, delete Keynote and re-install from the Mac App Sore. -
Lightroom Brushes are adding a Tint, even images converted to B&W
I'm using Lightroom 4.4 on Mac.
Having an issue where all brushes and graduated filters are adding a warm yellow tint, no matter what the color settings are for the brush. The tint persists, even if I convert the image to B&W within Lightroom.Turns out there WAS a very light color slected with the brush. I never use that feature, so I have no idea how it got selected. And the tiny little color window in the pallete is so easy to miss...
Thanks for the help. -
Raster texture on vector image?
I've drawn some images in Illustrator CS4, on which I want to put an overlayed raster texture on. But how do I do that?
Attempt 1:: If I just overlay it, I somehow need to clip the texture to match the outline of the image.
Attempt 2:: I've tried a opacity mask, but it makes my image semi-transparent.Use the path as a clipping mask. Check the help files for instructions. Come back if you need further help.
-
Replacing colour/texture from one image onto another?
Desperately need some guidance here as this has been driving me nuts....
I want to use the colour and texture from one photo onto my own design. Now, using the rubber stamp tool I am able only to clone a certain area that moves with the cross hair, but how can I clone a section from one photo and use that as a fill to create another design? In other words, clone a colour from one photo as a colour fill for another design?
Even using the colour replace tool and selecting source: image I am left with the colour pallette as the destination and cannot use the colour from the image to paint my new image from it.
Thanks a heapIf I want to copy a single color from one image to another, here's what I'll do:
Create a new rectangle in the source image
With the rectangle selected, use the eyedropper to pick a color from someplace in the source image
Copy the rectangle and paste it in the destination image
Select the object I want to color and use the eyedropper tool to select the color from the copied rectangle
(A layer with rectangles of different colors is sometimes handy for setting up a color scheme and using it consistently.)
You can also create bitmap patterns to use as fills for vector objects. Fireworks comes with quite a few, but it's easy to add your own. Here are a couple of tutorials
http://www.entheosweb.com/fireworks/patterns.asp
http://www.peachpit.com/articles/article.aspx?p=30942&seqNum=4 -
Adding Filters To Still Images Makes Them Blurry
Has anybody experienced this?
I am working on a photo gallery and simply adding "ANY" filter such as drop shadow or roughen edges blurs the photo. If you toggel the effect on and off you can see the difference in quality.
It happens to either format "Tif or Jpeg" These are images with scale keyframes applied.
I actully noticed this in CS2 also. I guess it carried over to CS4.
P4 3.4 ghz
4 gig ram
geforce 6800 xt
Vista 64 bit (Clean Install)
Asus p5n32-sli deluxe (Bios and chipset updated)
All drivers updated
Premiere Pro Cs4 4.0.1I've not experienced this in either 2.0 or CS3.
-
Adding texture to a drawing in photoshop
I have a drawing that I did on Illustrator, that I want to change the texture on the drawing (in photoshop) to make it look like webbing (adding a weave pattern) I was told that I need to do this through the paintbrush, but I need a little more explanation.
As our Bruce has just told you, there are so many ways to add texture. Strangely, none of the obvious methods would use the paint brush. Also, as suggested by our Bruce, it depends entirely on what you want to do, and a scale of any patten involved.
The denim patten in this was done using the Half Tone filter, for instance.
There are weave pattens available from Scripted Fill if you have CC, or a great tool to experiment with overlaying textures, is to install the free Flypaper Textures extension by Russell Brown.
end of the line
Maybe you are looking for
-
"Wrong Sync Key" even though it's right on my laptop
Fired up a new laptop, installed Firefox 3.6.12, and Sync gets stuck at "Wrong Sync Key" when I try to activate Sync. I'm looking at my other laptop's working Sync key as I enter it--I'm entering the CORRECT sync key. I get the same results on the bu
-
I got My Apple Developer Program Enrollment Request but till now don't get any verification
i wanna buy developer apple account .I got My Apple Developer Program Enrollment Request before 6 days but till now don't get any verification . so please help us ASAP .
-
Still unable to open files (from My Pictures) in PSE 11.
Have tried several things including going right into C./Program Files etc, etc.( found I could not find Security to check on read/write possible problem) but still cannot access PSE 11 directly from My Pictures when I highlight a picture/go to File/
-
I am unable to save my gmail Mailbox behaviors?
I have two issues. 1. Multiple draft copies saved with in my Trash for my Gmail account. 2. Google suggests settings to correct this but with imail it will not let me save the changes I try to make plus, I can not even un-check my Trash behavior opti
-
Itunes 11 -- can't find summary tab or screen to move icons
I upgraded to itunes 11, and now when i plug in my iphone to sync, it autosyncs. i used to be able to select my device, which gave me a summary tab where i could sync with outlook. i also can't find the screens to move icons to different screens